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

What is an efficient way to stop a part rotation?

Is there another way i can stop an brick from rotating instead of having to use something like

part = script.Parent

while true do
part.Orientation = Vector3.new(0,0,0)
wait()

Also using this method with while true do kinda bugs the part, you can try it yourself to get what i mean...

2 comments

0

Use BodyGyros on the part.

0

bodygyros don't work well, use body angular velocity for rotating parts.

1 answer

✓ Accepted answer

You could use body angular velocity, and set that value to something. Then, insert this script by the body angular velocity:

local bav = -- this is where body angular velocity is located
--insert criteria for the spinning to end or stop here
bav.AngularVelocity = Vector3.new(0,0,0) -- you can change this if you want it to go another direction

2 comments

0

Thank you!

0

np

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