Rotate player / character

Hi,

I am trying to rotate the player/character in a local script by around 5 degrees each keypress, I can do the keypress part but can’t find how to rotate the player/character?

Thanks

Depends on the axis. If you want it on the Y axis pole, then you can

player.Character.PrimaryPart.CFrame = player.Character.PrimaryPart.CFrame * CFrame.Angles(0,math.rad(5),0)

Thanks just what I needed and works

character:PivotTo(character:GetPivot() * CFrame.Angles(0, math.rad(5), 0))

Personally I’d use pivots.

https://developer.roblox.com/en-us/api-reference/class/PVInstance