Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Help on timer?

I was wondering how i can make a timer look like this 1:00 then this 60 for my games. I don't know how to make a timer like that but if you guys can help me that would be great!! All i know it has to deal with strings, right?

1 comment

0

Fixed my script

1 answer

I'm not 100% sure how this works, as I saw it in a ROBLOX default place, but here you go:

currentTime = 60
local minutes = math.floor(currentTime / 60) % 60
local seconds = math.floor(currentTime) % 60
print(string.format("%d:d", minutes, seconds)) -- Will print 1:00

2 comments

0

Ah its alright, I'll figure it out. Thanks!

0

Din't really work. But thanks anyways.

This discussion is preserved as it was. New answers, comments, and votes are closed.