Rotate the character on the Y axis

Hello ! I’m trying to rotate my character on my mouse on the Y axis but my tests is inconclusive, so I would like to know what you think is the best way to rotate a character on the Y axis.

Thanks.

this is how you rotate any part on the Y axis. (the humanoid root part is the PrimaryPart of the character model, so it’ll move the whole model)

Root.CFrame = Root.CFrame * CFrame.Angles(math.rad(MouseY), 0, 0)

if you want to rotate both X and Y axis then use two separate .Angles() calls (or else it’ll tilt weirdly)

Root.CFrame = Root.CFrame * CFrame.Angles(math.rad(MouseY), 0, 0) * CFrame.Angles(0, math.rad(MouseX), 0)

it all depends on whether or not your using mouse deltas or mouse position and what youre trying to accomplish.

You want it to face the mouse or move the delta amount that your mouse moves horizontally?