Stuck up on simple CFrame Rotation

I have a pathfinding script that is triggered via Bindable Event, it takes in the NPC to path find, their destination to path find to, and finally 3 rotation values (x,y,z), for them to face once their path is finished as parameters.

The problem I am having is simple, I don’t understand exactly what to pass in order to get the NPC to face the specific direction I want. The only things I have figured out is to rotate them based from where they currently look, or have them face a specific coordinate position.

But that is not what I want. What I want is if I were to pass off to face (0,90,45) for example, I want them to have an orientation of (0,90,45) regardless of where they were rotated before. I have no idea how I couldn’t figure this out, to set the HumRTPT to that specific orientation. I have been looking at forums but they have all been rotation relative to where they were before.

Thanks and Much Love.

Set the CFrame to the result of CFrame.fromOrientation(x, y, z). Rotations are applied in Y X Z order. If you replace the existing CFrame it is relative to the world, if you multiply it, it’s relative to the previous CFrame.