Hi, I wrote some code and it is supposed to move the sun and its for a game where i want an interactive day night cycle, but instead, the sun stays in place in the sky. Here's the code:
dayTime = 300 interval = 24 / dayTime while wait(1) do game.Lighting.ClockTime += interval end
Hi, put this script in serverscriptservice Script:
local Time = 0.01 --feel free to play with the numbers to set how you want it local TimeChange = 0.01 --feel free to play with the numbers to set how you want it while wait(Time) do game.Lighting.ClockTime = game.Lighting.ClockTime + TimeChange end