|
| 18 Dec 2011 09:48 AM |
So let's say in Lighting's TimeOfDay it is 14:00:00! So if we used game:GetService("Lighting"):GetRealTime() then it would convert the TimeOfDay to real time. It probably would return 3:00 PM or whatever time...I don't know.
It's just an idea I had....It's always good to have premade methods by ROBLOX isn't it? |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2011 10:25 AM |
| Not a bad idea but it doesn't look much different in roblox when you set the time of day to 10am or 6pm. |
|
|
| Report Abuse |
|
|
| |
|
frittle
|
  |
| Joined: 06 May 2009 |
| Total Posts: 2781 |
|
|
| 19 Dec 2011 03:34 PM |
| that game better have data persistence then. |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2011 03:36 PM |
| I didn't say anything about a game???!! |
|
|
| Report Abuse |
|
|
frittle
|
  |
| Joined: 06 May 2009 |
| Total Posts: 2781 |
|
|
| 19 Dec 2011 03:37 PM |
| i am saying that if a game DOES have this, it should have data persistence. |
|
|
| Report Abuse |
|
|
| |
|
frittle
|
  |
| Joined: 06 May 2009 |
| Total Posts: 2781 |
|
|
| 19 Dec 2011 03:38 PM |
do not mind what i said before, just mind what i am saying below:
Support. |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Dec 2011 03:59 PM |
Can't you just use: 'time = tick()' and work it out from there?
Also, I think that with a LocalScript it returns your system's time. |
|
|
| Report Abuse |
|
|
|
| 20 Dec 2011 04:24 PM |
| How would you use a LocalScript to return your systems time??? |
|
|
| Report Abuse |
|
|
|
| 20 Dec 2011 04:27 PM |
| I didn't even know that was possible. |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Dec 2011 04:35 PM |
tick() on an online server = seconds since midnight january 1, 1970 UTC tick() on the client (offline server or localscript) = same thing except on your computer's time
it's like os.clock() except we don't have os.clock() so we use tick()
so then you can do maths and stuff to get the current time and date
so if that's what you're asking, we don't REALLY need it. but if we were to have it, then it wouldn't be in lighting :l
it would be a global function like tick() and stuff (tick = os.clock, what_youre_asking = os.date?) |
|
|
| Report Abuse |
|
|
|
| 20 Dec 2011 04:44 PM |
"but if we were to have it, then it wouldn't be in lighting :l"
Yeah...Sorry about that. I need to think more often *Bangs head*
Thanks guys for your answers....Mostly towards crazypotato4...But thanks to all! |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2011 03:44 PM |
| But i don't like using math....Oh well. |
|
|
| Report Abuse |
|
|