So basically, I was trying to make a countdown function for my game. Here is what one of my friends came up with:
for countDown = 10, 0, -1 do
if countDown > 9 then
timeValue.Value = '0:' ..countDown
else
timeValue.Value = '0:0' ..countDown
wait(1)
end
end
I was wondering if there was a better method for doing this. If there is could any of you possible show me how to do it?
PS. I am trying to make it look like this: 0:10, 0:09, 0:08. etc.

2 comments
Duplicate Answer.
I added on to the answer above, also he didnt fix a problem the code had provided, which I fixed in my answer.