Clocktime wont change by script?

i made a day/night script, but for some reason the clocktime wont change? im not getting any errors.

while wait(480) do
	for i = 1,960 do
		game.Lighting.ClockTime = i/40
		wait(0.5)
	end
end

It works fine for me. Where is this script/localscript located?

1 Like

it says while wait(480) do so it will wait 480 seconds before doing anything, this is 8 minutes

server script service
{random text so the reply contains enough characters}

oh yeah that makes sense, let me try to fix that