while wait() do if game.ReplicatedStorage.inRound:GetPropertyChangedSignal("Value") == false then print("false") end if game.ReplicatedStorage.inRound:GetPropertyChangedSignal("Value") == true then print("true") end end
I've tried other methods as well but they won't fire at all. I've searched other threads as well but I can't find the answer. Any help is appreciated, thanks.
In your above scenario, why don't you just do:
while wait() do if game.ReplicatedStorage.inRound.Value == false then print("false") end if game.ReplicatedStorage.inRound.Value == true then print("true") end end
Hope it helps
GetPropertyChangedSignal()
isn't being used correctly. The great thing about this is that you don't need a loop at all. This function triggers a watch on a server event, in this case "Value"
being changed.
Try this:
game.ReplicatedStorage.inRound:GetPropertyChangedSignal("Value"):Connect(function(Value) if Value then print("false") else print("true") end end)
or simply:
game.ReplicatedStorage.inRound:GetPropertyChangedSignal("Value"):Connect(function(Value) print(Value) -- Since Value will automatically be casted into a string end)