Model Sun & Moon Script Not Working

Basically I have a Model Sun and Moon and their meant to follow the direction of sun and moon in roblox but it doesn’t work. Any idea why?

Local Script:

local SOLAR_DIST = 512

local sun = workspace:WaitForChild("Sun")
local moon = workspace:WaitForChild("Moon")
local Lighting = game:GetService("Lighting")

local function updateSunAndMoon()

	local sDir = Lighting:GetSunDirection()
	local mDir = Lighting:GetMoonDirection()

	local origin = CFrame.new(workspace.CurrentCamera.CFrame.Position)

	sun:PivotTo(origin + SOLAR_DIST  * sDir)
	moon:PivotTo(origin + SOLAR_DIST  * mDir)

end

Just to check, is that the entirity of the script?

If so, you need to be calling the updateSunAndMoon function every so often, such that it actually updates it.

If not, can you please provide more of the code? Also, can you elaborate on what happens so far?

probably you should set the direction in negative and also you have to call the function, i dont see that in your code