Basically, this script works right. Except, when it gets to 180 it doesn't rotate anymore. I know why it stops at 180, but is it possible to continue the rotation?
while wait(0.01) do script.Parent.Rotation = script.Parent.Rotation + Vector3.new(0, -1, 0) end
Don't use Rotation
. Use CFrame
instead.
while wait()do script.Parent.CFrame=script.Parent.CFrame*CFrame.Angles(0,math.pi/180,0) end