I am making a Day-night Cycle but when it becomes night I want it to have moon rays which isn’t supported in Roblox
But how could I do a trick with the sun moving with the moon (DURING NIGHT WITH THE DEFAULT NIGHT SKY) on my moon for iit to overlap my Sun Rays to illusion moon rays
(i deleted most of it for this post as most of it is not needed for my help)
My script:
task.spawn(function()
while true do
if Lighting.ClockTime < 18.05 and Lighting.ClockTime > 18 and night == false then
night = true -- NIGHTTIME
local weath = Weather.ChooseWeather() -- ignore this it just chooses the weather for the night
Lighting.GeographicLatitude += Random.new():NextNumber(0.5, 1.5)
end
if Lighting.ClockTime < 6.25 and Lighting.ClockTime > 6 and night == true then
night = false -- DAY TIME
Lighting.GeographicLatitude += Random.new():NextNumber(0.5, 1.5)
end
Lighting.ClockTime = oldTime + (0.001 * SPEED)
oldTime = Lighting.ClockTime
task.wait()
end
end)
A bit more explaination: I want the moon to have moon rays