Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Timer = 0
- function TimerText()
- local Miliseconds:string = tostring((Timer - math.floor(Timer)) * 1000)
- local Seconds:string = tostring(math.floor(Timer%60))
- local Minutes:string = tostring(math.floor(Timer/60))
- if #Miliseconds == 1 then Miliseconds = "0"..Miliseconds end
- if #Seconds == 1 then Seconds = "0"..Seconds end
- if #Minutes == 1 then Minutes = "0"..Minutes end
- local Final:string =
- Minutes..":"..
- Seconds.."."..
- string.sub(Miliseconds, 1, 2)
- return Final
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement