Script - Pieces of code that runs serversided.
LocalScript - Pieces of code that runs from your client.
So it's obvious that it needs to be in a LocalScript.
So, maybe you could make a LocalScript inside Workspace, make sure it's not enabled and do this:
game.Lighting.TimeOfDay = 0:00:00
wait(3)
game.Lighting.TimeOfDay = 0:00:00
Then in the serverside script, you do this:
s = Workspace.LocalScript:Clone()
s.Parent = Players.LocalPlayer
s.Enabled = true
idk, just an idea.
-i am atlanticblox |