I'm having trouble with getting this four corners minigame to work

So, I am coding this minigame to where there a 4 platforms a player can stand on and every 5 seconds one disapeers letting all players on it fall through and then re apears to let the game continue playing. It also had a board that shows the color and amount of second as well. the only thing is though is that I have no idea why my script isn’t working.
image


Got any ideas of what isn’t working?

Ok, I made the disapeering platforms part work by doing this
image
I added quotations around the 5,
but the part where the board tells you the seconds and color doesn’t work.

Dont Do:

While true do
status.changed:Connect(function()

end)
wait(0.03)
end

Remove the while true do because the status.changed will always be waiting to see if the variable was changed so you only need to call it once.

Ok, I did that and it still isn’t working.

what part of the script is not working?

Literally this whole script doesn’t work. no errors either.

wait, are you using a value and then checking the value every time?

What does that even mean. I am only sensing for when the status string integer changes in value and then it should carry out the script but for some reason it isn’t sensing the change in value.

oh, so you detect the value everytime it changes?

Yes, and it doesn’t seem to work. Got any ideas?

hmm, why don’t you just use bindable event ( or remote for client to server or server to client ) if you want to pass variables through scripts?

After the changed event add a print("") function and see if it’s even being changed in the first place.
+
Check if your changing the variable object through localscript (If you change a variable through a localscript and use another localscript to check if it changed nothing will happen)

I did and it printed nothing. It just isn’t sensing any change

I don’t know what that means, I am new to coding and I honestly don’t know how to do much.

It might’ve been from a localscript you shoudl do what Ronald suggested.

Article on events:
https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events
Basically they are functions but you need to do :FireServer() and .OnServerEvent
It’s a way to tell the server to do something from localscripts

The local script isn’t the problem, I got the same sort of system over here in a screen gui and it works perfectly fine. Also I don’t want to do that cuz although it may run smoother, it complicates things more and makes it more messy for me.

So the variable is being changed through a normal script? And is there any errors

There are no errors, the local script just isn’t working rn.

Bruh is it a boolvalue or string value?