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).