Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

My rotation script isn't working how I want it?

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

1 answer

✓ Accepted answer

Don't use Rotation. Use CFrame instead.

while wait()do
	script.Parent.CFrame=script.Parent.CFrame*CFrame.Angles(0,math.pi/180,0)
end

3 comments

0

there is something called spacebar! also, thanks! :P

0

I tend to use as few characters as possible. It's a code golf habit.

0

Ah, I see.

This discussion is preserved as it was. New answers, comments, and votes are closed.