To disable turning (like when you push a WASD key) there's a humanoid property named 'AutoRotate.' With that off your character will permanently face the direction it was while the property was true. After that, you can script the character's direction.
A script inside the character model:
1 | character = script.Parent |
2 | character.humanoid.AutoRotate = false |
3 | HRP = character.HumanoidRootPart |
6 | HRP.CFrame = CFrame.new(HRP.Position.X, HRP.PositionY, HRP.Position.Z)*CFrame.Angles( 0 ,y, 0 ) |
Are you making a 2D based game? I can see how this'll be useful for that, good luck!
EDIT: My original script never actually rotated anything... Fixed now!