unbunn
|
  |
| Joined: 05 Feb 2017 |
| Total Posts: 17 |
|
|
| 06 May 2017 09:34 AM |
| so there's this way to get your game's time on the screen Gui, but I want it to be the 12 hour version (like you see in most games). How do I make a 12 hour clock for the screen Gui? |
|
|
| Report Abuse |
|
|
| |
|
unbunn
|
  |
| Joined: 05 Feb 2017 |
| Total Posts: 17 |
|
|
| 27 May 2017 09:43 AM |
| do I write that with my original script? |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 May 2017 09:59 AM |
| cuz at 0 it needs to be 12 and 1 at 1 |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 May 2017 10:03 AM |
just set hour to
math.floor(minutes/60 - 1) % 12 + 1 |
|
|
| Report Abuse |
|
|
|
| 27 May 2017 10:05 AM |
but u probably only want that to be ur DISPLAY hour in case ur using it to count something like days too then u should do
local hour = floor(minutes / 60) local display = (hour-1)%12 + 1 |
|
|
| Report Abuse |
|
|
unbunn
|
  |
| Joined: 05 Feb 2017 |
| Total Posts: 17 |
|
|
| 03 Jun 2017 08:06 AM |
This is the script so far:
while true do script.Parent.Text = game.Lighting.TimeOfDay wait(0.1) end
I tried putting the hour 12 thing on top how do I modify it so it's a 12 hour clock I put the other scripts on top but it didn't work :( |
|
|
| Report Abuse |
|
|