I've been attempting this for a while. I am making a rather "spooky" game and am trying to make a storyline to where you are in a land where the sky is "cursed" and is always night time. So basically, I've got the code somewhat set up, I'm just trying to find the right number for the minutesAfterMidnight command.
local timeOfDay = minutesAfterMidnight
minutesAfterMidnight = 1439
print("variable works") --just for debugging
while true do
minutesAfterMidnight = minutesAfterMidnight + 1
game.Lighting:SetMinutesAfterMidnight(minutesAfterMidnight)
timeOfDay = minutesAfterMidnight
wait(.1)
print("time of day works") --also for debugging
if timeOfDay < 361 and timeOfDay > 359 then
minutesAfterMidnight = 1439
end
print("if statement works") --once again for debugging
end
Again, if someone could either help me with the code and/or find the right number for the time of day, that would be awesome.

2 comments
Sorry for the late response. But anyways, thanks a bundle. And yea, I was wanting it to cycle through like normal, except when the moon goes down, and when the sun usually would come up, the moon does instead.
Let me know if you need any additional help with this; my answer assumed you had enough knowledge to do it yourself once told how, but if you need help, I can help.