Hello! I maked this simple timer but I don't how can I break this loop if will be just 2 players on the game. Anyone know what can I add?
1 | while true do |
2 | t = 10 |
3 | repeat |
4 | t = t- 1 |
5 | s.Value = "Time Left: " ..t |
6 | wait( 1 ) |
7 | until t = = 0 |
8 | end |
Place all of this in the spot where you want to break.
1 | local bruh = game.Players:GetChildren() |
2 | if #bruh > = 2 then |
3 | break |
4 | end |