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 » Scripting Helpers
Home Search
 

Re: How would this work?

Previous Thread :: Next Thread 
manofthebase44 is not online. manofthebase44
Joined: 14 Feb 2012
Total Posts: 2221
27 Apr 2013 04:08 AM
How would I make a print Time code?
--[[What it does is print's the exact real life time zone.]]--
Report Abuse
Sasdra is not online. Sasdra
Joined: 26 Apr 2013
Total Posts: 2
27 Apr 2013 04:13 AM
How can i script?
Report Abuse
Sasdra is not online. Sasdra
Joined: 26 Apr 2013
Total Posts: 2
27 Apr 2013 04:14 AM
How would this work?
Report Abuse
manofthebase44 is not online. manofthebase44
Joined: 14 Feb 2012
Total Posts: 2221
27 Apr 2013 04:16 AM
...Please leave a thread alone if you don't know what I am asking.
Report Abuse
manofthebase44 is not online. manofthebase44
Joined: 14 Feb 2012
Total Posts: 2221
27 Apr 2013 04:30 AM
-Bump-
Report Abuse
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
27 Apr 2013 04:31 AM
Use for loops?
Report Abuse
OKevinO is online. OKevinO
Joined: 05 May 2010
Total Posts: 1036
27 Apr 2013 04:36 AM
i dont think thats possible, unless ROBLOX itself can read your time.
Report Abuse
Superspeed500 is not online. Superspeed500
Joined: 22 Oct 2009
Total Posts: 452
27 Apr 2013 04:36 AM
I think Roblox servers have a built in time service that can be operated with a while loop. Maybe you could use that to simulate irl time?
Report Abuse
manofthebase44 is not online. manofthebase44
Joined: 14 Feb 2012
Total Posts: 2221
27 Apr 2013 04:46 AM
I'll try that thank's, for the advice.
Report Abuse
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
27 Apr 2013 05:06 AM
Here's the thing why it's impossible:

Roblox can't use an exact time. The only way to do it is launching a server at a specific time where your script should execute a Timer function beginning from that time until 12 Midnight, and then Do it again from 12:01 AM. The reason it must stop at Midnight is creating an infinite loop is most likely to crash the server.
Report Abuse
manofthebase44 is not online. manofthebase44
Joined: 14 Feb 2012
Total Posts: 2221
27 Apr 2013 05:27 AM
That's not true, go check http://www.roblox.com/Oxcool1s-Script-Builder-place?id=20279777
Report Abuse
TheGamer101 is not online. TheGamer101
Joined: 14 Feb 2009
Total Posts: 11943
27 Apr 2013 06:26 AM
I don't know if there is a specific function for this or if you need to calculate it yourself using tick().

tick() returns the exact number of seconds since January 1st, 1970.
Report Abuse
manofthebase44 is not online. manofthebase44
Joined: 14 Feb 2012
Total Posts: 2221
27 Apr 2013 06:44 AM
Wow thank's TheGamer101 not just for helping me, but for having the time to post on my thread.
Report Abuse
expressmyself is not online. expressmyself
Joined: 19 Apr 2011
Total Posts: 1768
27 Apr 2013 07:02 AM
I thought you just use

while true do
game.Lighting.Time = 00.00
wait(TIME OF SECONDS HERE)
game.Lighting.Time = 00.01
wait(Same Thing as above)
end
Report Abuse
expressmyself is not online. expressmyself
Joined: 19 Apr 2011
Total Posts: 1768
27 Apr 2013 07:14 AM
nvm wrong answer
Report Abuse
manofthebase44 is not online. manofthebase44
Joined: 14 Feb 2012
Total Posts: 2221
27 Apr 2013 07:36 AM
Ow no but thank's for trying.
Report Abuse
manofthebase44 is not online. manofthebase44
Joined: 14 Feb 2012
Total Posts: 2221
27 Apr 2013 08:38 AM
--[[Bump[[--
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
27 Apr 2013 08:44 AM
I do believe Gamer has given you the answer.

You'd divide what's returned by 'tick()' to get the current time. If you do this in a LocalScript it'll get the user's current time, while doing it in a normal script will return the server's time. If you minus the user's time from the server's time, that'll tell you the time difference...

... Or something along those lines.
Report Abuse
manofthebase44 is not online. manofthebase44
Joined: 14 Feb 2012
Total Posts: 2221
27 Apr 2013 09:37 AM
Ow thank's Iv'e just coded it into my game and it work's.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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