Stopwatch seconds kinda breaks when it reaches 10. Any help?
I've been trying to make a stopwatch for an obby game of mine, which times you as you complete it. When the stopwatch reaches 10 however, it breaks and say "00:010" instead of "00:10" like its suppose to. If anyone could help, that would be great.
Its inside a local script with its parent being a textlabel.
03 | local text = script.Parent |
08 | startsec = startsec + 1 |
10 | if startsec = = 60 then |
15 | local mess = "0" .. startmin .. ":" .. startsec |
18 | local mess = "0" .. startmin .. ":0" .. startsec |