- Code: Select all
function truncate()
local timer = math.floor(time:time()/1000)
local minutes = math.floor(timer/60)
local seconds = timer-(minutes*60)
if minutes < 10 then
minutes = "0"..minutes
end
if seconds < 10 then
seconds = "0"..seconds
end
return minutes..":"..seconds
end
but it always goes like this:
00:00
00:01
...
00:59
00:60
01:01
is there any way to make it not show 00:60 and show 01:00? i'm pretty sure there should be an easy way but my brain isn't really working at the moment


