Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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.

2 comments

1

Do any of your server-side scripts ever change ClockTime? ClockTime changes by those the will overwrite changes by LocalScripts.

0

@Sulfone No, they don't, which is why I am really confused at to why it is doing it.

2 answers

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

1 comment

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.

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

This discussion is preserved as it was. New answers, comments, and votes are closed.