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

How do i make a timer with ":" thing?

I know how to make one with repeat or wait but it only shows it in seconds.What function or whatever can i use to make a timer like on a digital clock or if there is anything on the wiki could I have a link to it?

1 comment

0

Are you trying to use real time data?

1 answer

✓ Accepted answer

use a gui and set the text property,

t=75--or whatever in seconds

while t>0 do
t=t-wait(1) --in exact time
local s=math.floor(t%60) --set second count to the floor of the remainder of t/60 seconds
local m=math.floor(t/60) --set minutes to the floor of t/60 seconds
if s<10 then s="0"..s end --add a zero if s<9 so 1:9 becomes 1:09
	script.Parent.Text= m .. ":" .. s --change to wherever your output is
end

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