Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I stop collision detection when rotating a part, using a script?

Asked by
ExcelUp 24
6 years ago

In order to stop collision detection when moving parts in a script, you use 'CFrame' instead of 'Position'. How do I stop collision detection when rotating parts in a script, as 'Orientation', as collision detection?

1 answer

Log in to vote
0
Answered by 6 years ago

While rotating a part, the part changes position if it's new rotation will collide, as you know. To fix this problem, you must rotate the part then CFrame it to the desired position which will bypass the collision check. This occurs so fast that our human eyes cannot notice the part changing rotating then getting a new position.

Ad

Answer this question