How do I rotate a part 180 degrees no matter what its rotation on the Z Axis?

Im trying to rotate a part but before I rotate it, Im rotating it left and right using my mouse so when I set the new CFrame it adds the rotation from when I was using my mouse to rotate it which I dont want, I want it to be exactly parallel or 180 degrees

1 Like

You can use the F3X Building plugin to solve this issue.

No Im like actually working in a script with CFrames

So you want the part to rotate 180 degrees relative to it’s Y-Axis or the world’s axis?

I think relative to the Y Axis, hold on I have some samples

If it is, I think you can use CFrame:ToObjectWorldSpace or whatever function that was called to solve that.

yes I forget things sometimes so search it up on developer hub.

So I have my character on the left side of the wall and he can rotate left and right on the Z Axis

The problem is that when Im trying to switch the sides of the wall, I know how to orient him to face the wall and flip him in the negative direction but the problem is, it keeps the rotation when I switch faces which is what I dont want, I want it to have no rotation when it switches to the other face basically

Slanted:

image

1 Like