✓ Accepted answer
You can either use the instance.Changed event or put the check inside a while wait() do loop.
this is the instance.Changed() event version
game.ReplicatedStorage.RoundSystemValues.VoteStarted.Changed:Connect(function()
if game.ReplicatedStorage.RoundSystemValues.VoteStarted.Value = true then
else
end
end)
this is the while wait() do loop
while wait() do
if game.ReplicatedStorage.RoundSystemValues.VoteStarted.Value = true then
else
end
end
Note: i use a while wait() do loop instead of a while true do loop to avoid script exhaustion.
1 comment
It worked, thanks a lot! :)