How do I make nights longer than days in Day night cycle

This is a fast day night cycle.
you can change game.Lighting.ClockTime += 1 for a more smooth transition
but that would make it slower. to make it slower, change timespeed to a lower number (like .005)

local TimeSpeed = .2 -- this is the starting time for day

while true do
	wait(TimeSpeed) -- waits depending on how long TimeSpeed is
	game.Lighting.ClockTime += 1 -- adds one hour every time it loops
	if game.Lighting.ClockTime > 17 or game.Lighting.ClockTime < 6 then
		TimeSpeed =.1
	else
		TimeSpeed =.2
	end
	print(TimeSpeed) -- you can remove this if you want
end

place a normal script in server script service and paste this in.
(this will not work if you put it in Lighting)

5 Likes