I want a bodygyro to keep a part straight. How do I make it look where the part is currently looking? It doesn't have a position property or anything like the bodyposition.
Look at the Wiki article or the Object Browser for that matter.
It does have a .cframe
property which is the "The rotation goal of the object".
The Properties tab never lists CFrame
properties, which is why it's not listed there.
A part
's current CFrame is simply part.CFrame
, so to set its BodyGyro to keep it in the same orientation, you could use
part.BodyGyro.cframe = part.CFrame -- Note the case of `cframe` and `CFrame`.