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

How do I Pass a Variable Through Bindable Functions?

Asked by
St1zz 0
4 years ago

Im trying to send my variable "notfroze" from my Script to my LocalScript but I get an error saying: Unknown global 'notfroze'

Bindable Function Name: "notfrozen"

Script Name: "IceShooter"

LocalScript Name: "IceShootScript"

The Bindable Functions Parent is the "IceShooter" script

Script:
getnotfrozen = game.ServerScriptService.IceShooter.notfrozen
    getnotfrozen.OnInvoke = function(notfroze)
                local notfroze = false
                wait(3)
                notfroze = true


LocalScript: getnotfrozen = game.ServerScriptService.IceShooter.notfrozen getnotfrozen:Invoke(notfroze) print(notfroze)
0
you are sending "notfroze" before you define it. make notfroze false at the top of your script before you send it OBenjOne 190 — 4y

Answer this question