Prukings
(Prukings)
July 28, 2022, 12:48pm
#1
What do you want to achieve?
I want to have my roblox time like this: Midnight Sun in the Arctic (Time-Lapse) - YouTube
What is the issue?
I don’t know how to do it.
What solutions have you tried so far?
I tried with GeographicLatitude and scripting, it didn’t work well.
Lighting = game:GetService("Lighting")
while task.wait(0.01) do
Lighting.ClockTime = Lighting.ClockTime + 0.1
Lighting.GeographicLatitude = Lighting.GeographicLatitude + 0.01
end
anxyeity
(andrelol)
July 28, 2022, 1:00pm
#2
You would probably need to make your own sun system where you can manipulate it to do the behavior you’re after. I think what you’re looking for was proposed a while ago with this post:
Currently the only way to adjust the direction of the sun is with Lighting.ClockTime and Lighting.GeographicLatitude. For example, I cannot properly position the sun when the player is on the underside of a planet. The sun just fades and disappears into nothing and turns the entire game dark at night when moved using Lighting.ClockTime
A possible API solution could be to add Lighting.SunDirection, which would take a unit vector and make it so all sun shadows come from that direction. …
Also assuming that’s a server script, doing task.wait(0.01)
will cause lag / servers to crash.
1 Like