I am trying to stop seconds from changing and set it to 0 once there are no more people inside of a team. Here is my code:
local seconds = game.ReplicatedStorage.Seconds
local Playing = game.Teams.Playing
while seconds.Value > 0 do
if #Playing > 0 then
wait(1)
seconds.Value = seconds.Value - 1
end
Any suggestions?

4 comments
Wait, let me edit it...
just put the word break in the loop and it will break, make sure its at the end or in an if statement
^
edited my answer