Weird rotation problem

I set the HumanoidRootPart CFrame with the following function:

local cf = CFrame.new(Pos)*CFrame.Angles(math.rad(Ori.X), math.rad(Ori.Y), math.rad(Ori.Z))
print(minPos.Orientation, humRootPart.Orientation) --debug
return cf

Whenever the the x value is other than 0, the entire orientation vector gets weird.
The Ori being inserted is the orientation from the minPos part, and i am sure there is no problem with any other part from the script. (the Pos is just a calculated position between two parts and it works fine)
I have seen a post that said i should set the cframe orientation that way, is there another way that actually works? I can’t use normal orientation, or else i would need to change all the player’s parts individually with a table loop (which would cause lag because the player position changes on heartbeat).

Can you summarize what you’re trying to do? I’m not sure what you’re talking about

the player should be at a orientation as the minpos part (that is facing the ladder), but if the x value is other than 0, the player ends up with the wrong rotation, that is showed on the video. on the prints, the first 3 values are the orientation values from the part, and the last 3 values are the current humRootPart orientation.