Hi! I want to print something whenever a boolvalue's value is changed but I'm having problems. Help?
Script(in workspace):
local prompt = script.Parent prompt.Triggered:Connect(function(player) print("Activated") --this works local grappleAction = player.Character:FindFirstChild("Grapple"):FindFirstChild("shouldGrapple") grappleAction.Value = true --this works wait(1) grappleAction.Value = false --this works too end)
Local Script(in startercharacterscripts):
local Action = script.shouldGrapple Action.Changed:Connect(function(newvalue) print(newvalue) end)
prompt:GetPropertyChangedSignal("Value"):Connect(function(player)--will triger every time the value changes --your code here end)
local BoolValue = --Bool Value-- Boolvalue.Changed:Connect(Function() --Do stuff end)