im making a script wich is a Day/Night that makes the Sun and the Moon spin around the Workspace, but... i don't see it working, what is going wrong here?
local PlanetSpin = game.Lighting.GeographicLatitude while true do PlanetSpin.new = "+1" end if PlanetSpin == 360 then local PlanetSpin = 0 end
This should work for you. Upvote if it did.
Spawn(func) continues the code without it pausing at loops.
spawn(function() while true do game.Lighting.GeographicLatitude = game.Lighting.GeographicLatitude + .1 -- amount if PlanetSpin => 360 then game.Lighting.GeographicLatitude = 0 end wait(.1) -- speed end end)