Help with changing the HumanoidRootPart orientation to the camera orientation

I am trying to rotate the HumanoidRootPart in the global direction that the player camera is looking. I have tried alot of solutions using CFrame:ToEulerAnglesXYZ or other methods but the result is pretty weird.

Any help?