Day Night Cycle not working

This was working yesterday, I don’t know why it doesn’t now.

maybe it’s because of something I changed?

a pretty simple script which I should know how to solve yet it doesn’t work.

local Lighting = game:GetService("Lighting")
local Minutes = 7 * 60 
local timeroll = true

while timeroll == true do
		Lighting:SetMinutesAfterMidnigh(Minutes)
		Minutes = Minutes + 1
		
		wait(2)
end

You wrote

SetMinutesAfterMidnigh, it should be

SetMinutesAfterMidnight

1 Like

Wow, thanks! Now it works! I tried most of the stuff thinking it was something wrong with the script, I guess I removed that “t” on accident? Thank you anyways!

Haha it’s okay, sometimes mistakes go over our heads, glad I could help! If you have anymore issues don’t be afraid to make another post!

1 Like

alrighty, thank you for the help!

1 Like