How do you force players to look in a direction?

So I wanted to make something like a pokemon game,
but when I get into a fight, I’m looking at the wrong direction,
I’ve tried this CFrame.Angle thing but it just teleported the player to 0,0,0
This is done in a local script, and yes I am trying to adjust the HumanoidRootPart.
If someone can help me, that would be great!

local rootPart = character:WaitForChild("HumanoidRootPart") -- define the humanoid root part
-- create a new cframe with the xyz of the current position and multiply the matrix by a rotation
rootPart.CFrame = (CFrame.new(rootPart.Position) * CFrame.Angles(0,0,0))

You could have probably found an answer faster by searching for it, so try and see if your question has already been answered

3 Likes