Im trying to make a script change the timeofday variable inside of Lighting. I have been searching on the dev page but I found nothing.
This is the code I tried to do this with:
local Lighting = game.Lighting
while true do
Lighting.TimeOfDay = Lighting.TimeOfDay + 15
wait(300)
end
--this *REGULAR* script is in ServerscriptService
can someone help me figure this out?

1 comment
https://developer.roblox.com/en-us/api-reference/property/Lighting/TimeOfDay