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

How would I keep a part from horizontally and vertically rotating?

Asked by 5 years ago
Edited 5 years ago

Basically I'm trying to make it so certain parts can't be rotated AT ALL, but I'm new to using BodyGyro (i dont understand how it works thus gave up trying to learn how it functions) and so far I've been led to believe that BodyGyro isn't going to help me keep a part from 100% rotating (I tried using it, but it has only stopped vertical rotation. Horizontal rotation is also something that I want gone.)

Very small line of code:

script.Parent.CFrame = CFrame.Angles(math.rad(180), 0, math.rad(180))

By the way, the BodyGyro goals are: D: 500 MaxTorque: 0,0,0 P: 3000

ALSO: The script is inside the BodyGyro.

0
Then just anchor the part lol User#19524 175 — 5y
0
Not doing that because the part is what the player controls, thus whenever it bumps into something it ends up rotating. Anchoring takes away its movement. MeleeSoul 14 — 5y

Answer this question