Need help with my Top Down Character Controller

You can write your topic however you want, but you need to answer these questions:

  1. I want to remove the weird things happening with my face mouse function

  2. The Player isn’t supposed to look down, how to disable that?
    Whenever the player looks down he goes in some random direction for no reason, how to stop that?

  3. I’ve been trying for hours to figure this out but i can’t plz help, im new :stuck_out_tongue:

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

This is the code inside StarterCharacterScripts

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local character = player.Character or player.CharacterAdded:Wait()
local runService = game:GetService("RunService")

	local StartPosition = character:FindFirstChild("HumanoidRootPart").Position
	local TargetPosition = mouse.Hit.p
	local targetRot =, 0, TargetPosition.Z)
	character:FindFirstChild("HumanoidRootPart").CFrame =, targetRot)

Please help me out on this :confused:

Humanoid is looking at Y:0 coordinate. You should make it look at a position at the same Y level as the root. Try this:

local targetRot =, StartPosition.Y, TargetPosition.Z)

character:FindFirstChild("HumanoidRootPart").CFrame =, targetRot)

Wow! It worked! Thanks man, appreciate the help :slight_smile: