Changing a parts orientation with CFrame.angles(math.rad(),0,0) doesn't get desired affect

Hello, I have a part that I’m trying to change its orientation by using CFrame.angles. However, when I use math.rad in the X-axis, it doesn’t change it to the exact degree I want, but it works for the z and y-axis. Wondering how could I change the orientation precisely to what I want it to?

local Part = script.Parent
Part.CFrame = Part.CFrame * CFrame.Angles(0,math.rad(75),math.rad(-53))

Parts orientation:
https://gyazo.com/edd0221e7b72317eeee041af854af85f

local Part = script.Parent
Part.CFrame = Part.CFrame * CFrame.Angles(math.rad(10),math.rad(75),math.rad(-53))

Parts orientation:
https://gyazo.com/3d66de3236024568592acf3e92893d7a

I think you want to use CFrame.fromEulerAnglesYXZ instead of CFrame.Angles which is applied in the XYZ order, orientation is YXZ

3 Likes