So basically, I’ve created a day/night cycle for my game. Unfortunately, with this cycle, the sun rises in the west and sets in the east, rather than vice versa.
I’ve tried messing with the geographic latitude, but the sun only moves so much, it doesn’t move to the opposite side of the sky.
What you can try and do is make the cycle script do the opposite, depending on how you made the function. Of course, it might look weird but it’s the only thing I could think of as of right now.
while true do
local dateTime = DateTime.now()
local universalTime = dateTime:ToUniversalTime()
universalTime.Hour -= 5
local estTime = DateTime.fromUniversalTime(universalTime.Year, universalTime.Month, universalTime.Day, universalTime.Hour, universalTime.Minute, universalTime.Second, universalTime.Millisecond)
game.Lighting.TimeOfDay = estTime:FormatUniversalTime("HH:mm:ss", "en-us")
wait(60)
end