Script is pausing loops instead of ending them?
So I have a round based game and if all the players in a team die then it will break the for loop and continue. That's what I want it to do. What it's actually doing is pausing the timer for about 5 seconds and continue. Please help..!
02 | for countdown = 300 , 0 , - 1 do |
03 | if script.endRound.Value = = true then |
04 | script.CountDown.Value = 0 |
07 | if game.Workspace.Radio.Activated.Value = = true then |
09 | script.CountDown.Value = 0 |
10 | for _, v in pairs (Players:GetChildren()) do |
11 | if v.TeamColor = = BrickColor.new( "Dark stone grey" ) then |
12 | v.leaderstats.Cash.Value = v.leaderstats.Cash.Value + 50 |
15 | script.CountDown.Value = 0 |
18 | for _, v in pairs (Players:GetChildren()) do |
19 | if v.TeamColor ~ = BrickColor.new( "Dark stone grey" ) then |
20 | for _, v in pairs (Players:GetChildren()) do |
22 | script.endRound.Value = true |
24 | script.endRound.Value = false |
28 | script.CountDown.Value = countdown |