here is a video of what i mean
timestamp 1:14-1:23
watch the star moving
i got something that doesnt work i got no clue how to recreate it
the main issues are that it needs to never change color since if the sun gets too low it would change from a white color to an orange color and the same way going the other way
it should always be either white or orange. i want to mainly focus on keeping it orange since that makes it so the star is lower down in the sky
update: i got a basic system that moves the sun to match the position of a part, but the biggest issue is still here
if it gets too high up or too low down it will change color
if you go under it, it changes color
if you go above it, it disappears
local Lighting = game:GetService("Lighting")
local RunService = game:GetService("RunService")
local star = workspace:WaitForChild("Star")
local tau = math.pi * 2
local camera = workspace.CurrentCamera
RunService:BindToRenderStep("sunmovement", Enum.RenderPriority.Camera.Value - 9, function()
local camPos = camera.CFrame.Position
local starPos = star.Position
local dir = (starPos - camPos).Unit -- direction to star from camera
local lat = math.atan2(dir.z, math.sqrt(dir.x * dir.x + dir.y * dir.y))
local lon = math.atan2(-dir.y, -dir.x)
local geoLatitude = (lat / tau) * 360 + 23.5
local clockTime = (lon / tau) * 24 - 6
Lighting.GeographicLatitude = geoLatitude
Lighting.ClockTime = clockTime % 24
end)