How to get one value of a cframe

Im trying to get just the y rotation of the cframe.
I’ve tried to do this but the value is always 0.



i think you meant to use orientation, i dont think cframe has a “rotation” (oreintation being the same thing)

1 Like

The CFrame of a part stores it’s rotation via a rotation matrix, therefore there isn’t exactly a Y component. Instead, the rotation matrix is made up of 3 unit vectors: the lookVector, upVector and rightVector - the upVector is likely the closest thing to what you’re thinking of, but part.Orientation.Y is probably what you’re after.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.