Split numbers (e.g. 1:30 or 1,000)

I want to be able to transform a value like 50, 70, 3 whatever it is into a time format. Like 50 would be written as 0:50, 70 would be 1:10, 3 would be 0:03 etc. same for thousands, if a value is 1000 it should display on a HUD as 1,000. I see string.comma. It exists. But it doesn’t do all that I want.

And for 1,000?

http://wiki.garrysmod.com/page/string/Comma should do the trick. If it doesn’t, tell us what exactly you want. Because it does exactly what you want.

Robotninjaed, sorry.

Sorry if I’m understanding this wrong but…

In that case output = 100,0 ? Unless it goes backward. Im gonna try it now

no.
1 = 1
10 = 10
100 = 100
1000 = 1,000
10000 = 10,000
100000 = 100,000
1000000 = 1,000,000
and so on.