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

Part Rotations causing the part to flip between 90, 0, 0 and 80, 0, 0. Help?

The script below has a problem. The part gets to 90, 0, 0 then starts rapidly switching between 90, 0, 0 and 80, 0, 0. How can I fix this?

while wait() do
	script.Parent.Orientation = script.Parent.Orientation + Vector3.new(10, 0, 0)
end

4 comments

1

Try CFrame

0

Ok

1

Is it colliding with any other parts? I think you should rotate it using the parts CFrame instead.

0

I don't know what I would do with out this site.

2 answers

Thanks to ud2v3cf I was able to come up with this working solution:

while wait() do
	script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(math.rad(10), 0, 0)
end

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