generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Time Gui

Previous Thread :: Next Thread 
unbunn is not online. 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
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
06 May 2017 09:38 AM
hour % 12


Report Abuse
unbunn is not online. unbunn
Joined: 05 Feb 2017
Total Posts: 17
27 May 2017 09:43 AM
do I write that with my original script?
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
27 May 2017 09:59 AM
u mean

(hour - 1)%12 + 1
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
27 May 2017 09:59 AM
cuz at 0 it needs to be 12 and 1 at 1
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
27 May 2017 10:02 AM
Hey thats me 21 days ago


Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
27 May 2017 10:03 AM
just set hour to

math.floor(minutes/60 - 1) % 12 + 1
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image