How to always rotate part 180 degrees even if it has already been rotated on another axis

So i tried to rotate a part 180 degrees on y axis and it works but whenever it is already flipped on x axis 90 it changes the x axis rotation to -90 degrees making it also flip on the x axis. How should i do this.
im using Cframe.fromOrientation
local part = workspace.Bear.PrimaryPart part.CFrame = part.CFrame * CFrame.fromOrientation(0,math.rad(180),0)

Like this?

No sorry, I didn’t mean this, but I already found a solution. thank you though