How can I make the players character face the direction that the camera is facing

As said in the title I want to make the players character face the direction that the camera is facing.
Now this being said I dont want to make it so if you look at the ground that your character turns towards the ground, I manly would like it to only change the Y axis. So how can I do this?

note Im pretty sure I only have to change the Y axis but if theres a way to do it without just the Y axis Ill take it lol

HumanoidRootPart.CFrame = CFrame.lookAt()?

1 Like

Could use look vector… pretty sure that’s how every other game handles it.

Like this: workspace.CurrentCamera.CFrame.lookVector

and just get the Y value of it (it’s a Vector3 btw) and use that to determine the player rotation.

1 Like