|
| 25 Dec 2015 09:55 PM |
--HOW THE HECK DID I MAKE THIS? this converts in normal time into digital clock style time (ex. 1:00 PM, 5:65 AM) function secstoclock(origseconds) local originalseconds = math.floor(origseconds) local minutes = tostring(math.floor(originalseconds/60))%12 local newseconds = tostring(originalseconds%60) local amorpm = math.floor((math.floor(originalseconds/60))/12) if minutes == 0 then minutes = 12 end local apm = "AM" if amorpm == 1 then apm = "PM" end if originalseconds >= 0 and tonumber(newseconds) < 10 then newseconds = "0"..newseconds end if originalseconds >= 0 then return minutes..":"..newseconds.." "..apm else return "" --lolzor, why would time be negative? well if it did and this wasn't here, R.I.P this gui end end
print(secstomins((tick()/60)%(60 * 24)))
have i ended the world? |
|
|
| Report Abuse |
|
|
76km
|
  |
| Joined: 14 Aug 2015 |
| Total Posts: 5455 |
|
|
| 25 Dec 2015 10:49 PM |
ummmmmmmmmmmmmmmmmm k
we can all do that, if u can't pls get off scripters.
Good job tho, welcome to scripters. |
|
|
| Report Abuse |
|
|
Lametta
|
  |
| Joined: 07 Jul 2012 |
| Total Posts: 7302 |
|
|
| 25 Dec 2015 11:08 PM |
whoa how did u do that11111
uber scriptor |
|
|
| Report Abuse |
|
|