Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can anyone help me? 2 Bindable Functions in same scripts being invoked doesn't work.

Asked by 1 year ago
local bindfunc = script.Parent.tasedremote
local val = script.Parent.TasedValue

function bindfunc.OnInvoke()
    val.Value = true
    script.Parent.Parent.Ragdoll.functions.ragdoll:Invoke("-1,0,0")
    val.Value = false
    wait(1)
    script.Parent.Parent.Ragdoll.functions.removeragdoll:Invoke()
end

If I run the removeragdoll seperately , it works, but if I run it like that it breaks.

Answer this question