My problem may sound easy, but i’ve been stumped on it for soo long! I have no idea why, but nothing I seem to do works! I am trying to get the ClockTime under Lighting to change via a server script for a day and night cycle, but the script simply does nothing when the game is played, client or serversided. The only functional script i’ve gotten to work is making a local script and putting it in StarterPlayerScripts, but I want everyones time to be the same.
Here is my code:
while task.wait(0.1) do
game.Lighting.ClockTime += 0.004
end
This is a server script and it is under Lighting, yet it still doesn’t work… Is this a ROBLOX bug, or a issue I made? Please help!!!
RunContext should really only be used in cases where you want to organize server/client stuff in a single and/or organized container instead of separately, or you want the script to run in containers where it normally wouldn’t (like in this case).
Other than that, I would say just stick with the Legacy RunContext.