|
| 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
|
  |
| Joined: 26 Apr 2013 |
| Total Posts: 2 |
|
| |
|
Sasdra
|
  |
| Joined: 26 Apr 2013 |
| Total Posts: 2 |
|
| |
|
|
| 27 Apr 2013 04:16 AM |
| ...Please leave a thread alone if you don't know what I am asking. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
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 |
|
|
|
| 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 |
|
|
|
| 27 Apr 2013 04:46 AM |
| I'll try that thank's, for the advice. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 27 Apr 2013 05:27 AM |
| That's not true, go check http://www.roblox.com/Oxcool1s-Script-Builder-place?id=20279777 |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 27 Apr 2013 07:36 AM |
| Ow no but thank's for trying. |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 27 Apr 2013 09:37 AM |
| Ow thank's Iv'e just coded it into my game and it work's. |
|
|
| Report Abuse |
|
|