I made a script for the lighting that looks like this,
MinutesAfterMidnight = 0 while true do MinutesAfterMidnight = MinutesAfterMidnight +1 game.Lighting:SetMinutesAfterMidnight(MinutesAfterMidnight) wait(.1) end
I also wanted the script to start at day time and to be a little longer at a time of 10 minutes to become night or day time.
while wait(1) do game.Lighting:SetMinutesAfterMidnight(game.Lighting:GetMinutesAfterMidnight() + 0.0167) end