What is wrong with this rotation?

So, i’m trying to rotate a part (in theory and without cframing, rather simple)
but i’ve noticed that when i do

Mesh.CFrame = Mesh.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(90),0)

it always applies the rx value to z

image

i’m stumped, what am i doing wrong?

If you really wish to have it on X and Y you can do that with fromEulerAnglesYXZ

fix (i have tested it) :

Mesh.CFrame = Mesh.CFrame * CFrame.fromEulerAnglesYXZ(math.rad(90),math.rad(90),0)

2 Likes

ah, thanks, i have no idea why it isn’t working with XYZ