Advertisement
2gbb

Tmer

Feb 22nd, 2021
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. while true do
  2. local timer = script.Parent
  3. local minutes = 0
  4. local seconds = 60
  5.  
  6. repeat
  7. if seconds <= 0 then
  8. minutes = minutes - 1
  9. seconds = 59
  10. else
  11. seconds = seconds - 1
  12. end
  13.  
  14. if seconds <= 9 then
  15. timer.Text = tostring(minutes)..":0"..tostring(seconds)
  16. else
  17. timer.Text = tostring(minutes)..":"..tostring(seconds)
  18. end
  19. wait(1)
  20. until minutes <= 0 and seconds <= 0
  21.  
  22. if minutes <= 0 and seconds <= 0 then
  23. for i , v in pairs(game.Players:GetChildren()) do
  24. game.ReplicatedStorage.KillAllPlayers:FireServer(v)
  25. minutes = 0
  26. seconds = 60
  27. end
  28. end
  29. end
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement