Timer only going down one second and then stopping?

I’m trying to make an intermission system and whenever the intermission countdown starts, the time goes down one second and then pauses. What is causing this?

repeat task.wait(1) Timer.Value -= 1 until Timer.Value <= 0 or #playerService:GetPlayers() < 2

Timer is a String Value inside of ReplicatedStorage.

1 Like

you cant subtract 1 from a string

timer needs to be a IntValue or NumberValue

https://developer.roblox.com/en-us/api-reference/class/IntValue

2 Likes

Oh, that was stupid of me. Sorry for this useless post, but thanks for the solution! It works now!