How Do I Move The Players Character Relative To The Mouses X, And Z

You can write your topic however you want, but you need to answer these questions:
1.Trying to move the players character relative the mouse x,z

  1. Dont know how

  2.  	local Conection = Pistol.Unequipped:Connect(function()
     		HoldAnimation:Stop()
     	end)
     	wait(.1)
     	HumanoidRootPart.CFrame = CFrame.new(HumanoidRootPart.Position,Vector3.new(math.clamp(MouseX,-180,180),HumanoidRootPart.Position.Y,math.clamp(MouseZ,-180,180)))
     end```

local Mouse = plr:GetMouse()
local plr = game.Players.LocalPlayer

repeat task.wait() until plr.Character
local Hum = plr.Character:WaitForChild(“HumanoidRootPart”)

Hum.Position = Vector3.new(Mouse.Hit.X, Hum.Position.Y, Mouse.Hit.Y)

welp found out i needed the mouseX,Z in the loop

but it still act weird can u help