How can I make the character not fall down when pointing the mouse down?

This is not a bug, however it is annoying when aiming because if you look down with the mouse pointer the character falls over and I would like to find a way to prevent it from falling over and just aim in the X and Y axes.
image

this is what i want to fix

What I put in the local script to point to with the maus would be

Player.Character.HumanoidRootPart.CFrame = CFrame.new(Player.Character.HumanoidRootPart.Position, Mouse.Hit.p)

Try this :point_down::point_down::point_down:

Player.Character.HumanoidRootPart.CFrame = CFrame.new(Player.Character.HumanoidRootPart.Position, Vector3.new(mouse.Hit.X, Player.Character.HumanoidRootPart.Position.Y, mouse.Hit.Z))
1 Like

It has been very helpful, thank you.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.