#How to send parameter through a event function

4 messages · Page 1 of 1 (latest)

unreal knot
#
local function updateArms(head) -- so this is a value
    if head.LocalTransparencyModifier == 1 and not FP then
        FP = true
    else
        FP = false
    end
end

local function characterAdded(character) 
    local head = character:WaitForChild("Head")

    FPHandler.createArms().Parent = workspace.CurrentCamera
    head:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(updateArms) -- how can i send parameter here
end
#

this isnt the entire script but how can i send a parameter when i write an event function like this

broken nest
#

How you would normally im pretty sure

head:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(updateArms(PARAMETER))