How to get a CFrame of an object with only 1 axis of its rotation

Im trying to get a cframe with only 1 axis of its rotation and I really just do not know how to do it.



To clarify my question Im trying to get the cframe of an object whos current orientation will return something like the red arrow, but I want to know how to get a cframe like the green arrow from that same object.

I am incredibly confused by this post. Are you trying to rotate an object’s cframe on 1 axis?

1 Like

I am trying to get the cframe of an object where its cframe is only representative of its orientation on 1 axis instead of all 3. So for example if a part is facing forward and another one is facing in the same direction but slightly pointed upwards i want to find a way to get the cframe of the pointed object being the same as the one that is not rotated at all.