Advertisement
saturnsolar

Minutes and Seconds Timer | ROBLOX

Apr 13th, 2020
36,649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. local timer = script.Parent
  2. local minutes = 2
  3. local seconds = 19
  4.  
  5. repeat
  6.     if seconds <= 0 then
  7.         minutes = minutes - 1
  8.         seconds = 59
  9.     else
  10.         seconds = seconds - 1
  11.     end
  12.     if seconds <= 9  then
  13.         timer.Text = tostring(minutes)..":0"..tostring(seconds)
  14.     else
  15.         timer.Text = tostring(minutes)..":"..tostring(seconds)
  16.     end
  17.     wait(1)
  18. until minutes <= 0 and seconds <= 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement