How to Change the Sun's Location in the Sky

Hello!

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.

How can I fix this problem?

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

That’s the script…