How can I detect when a boolvalue's value is changed?
Hi!
I want to print something whenever a boolvalue's value is changed but I'm having problems. Help?
Script(in workspace):
01 | local prompt = script.Parent |
03 | prompt.Triggered:Connect( function (player) |
06 | local grappleAction = player.Character:FindFirstChild( "Grapple" ):FindFirstChild( "shouldGrapple" ) |
07 | grappleAction.Value = true |
09 | grappleAction.Value = false |
Local Script(in startercharacterscripts):
1 | local Action = script.shouldGrapple |
3 | Action.Changed:Connect( function (newvalue) |