Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. local function display(nSeconds)
  2. local minutes = math.floor(nSeconds / 60)
  3. local seconds = nSeconds % 60
  4. -- now we got the amount of minutes and seconds, display them below yourself!
  5. -- Im just doing a simple print
  6. print(string.format("%02d:%02d", minutes, seconds))
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement