How to make a dayNightCycle with workspace:GetServerTimeNow()

Hello, Im trying to make a client-sided DayNightCycle with workspace:GetServerTimeNow().
It should be synced for all clients.

Simple as that:

local Lighting = game:GetService("Lighting")

while task.wait(1) do
	local serverTime = workspace:GetServerTimeNow()
	local clockTime = serverTime % 24
	Lighting.ClockTime = clockTime
end
1 Like

hey i used your script but its too fast. How can i slow down the cycle?

just change task.wait(1) to task.wait(2)? i think thats how you can change it