Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[ANSWERED] Locally changing Lighting.ClockTime causes the clock time to be servers (?)

Asked by 4 years ago
Edited 4 years ago

When changing the users ClockTime locally, it will occasionally change to whatever the server has set for its ClockTime. Although you may think i should just change it server side, I cannot do that as it would cause a separate script, which locally speeds up the day/night cycle (think of GTA V).

If anyone needs anything, just ask. Thanks in advance. I am also very new to Lua, so apologies if I have any beginner mistakes.

1
Do any of your server-side scripts ever change ClockTime? ClockTime changes by those the will overwrite changes by LocalScripts. Sulfone 141 — 4y
0
@Sulfone No, they don't, which is why I am really confused at to why it is doing it. SuchASaltyLemon 35 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

You can send a request to the server for the server's time and set it to that

0
Although this could usually do it, if I change the servers time, it will break the script that locally speed up time. Thanks for replying though. SuchASaltyLemon 35 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

Did something really stupid. I was using Lighting.TimeOfDay in the local script, instead of .ClockTime.

Answer this question