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)

7 comments
Still doesn't print anything.
how u changing the boolvalue?
Exactly like in the script I posted. I double-checked the value in-game and it does change when it should. But for some reason the local script inside the player does not print when the value changes.
u cant change values with scripts in the workspace
It doesn't print anything even when I change it from the server.
because the boolvalue never changes
I just said I'm changing it from the server. It does change and it does not print anything like it should.