When this code runs there is no error but, I am trying to make the code make the players head stay in the position its at but point to the mouse. What happens is the players head moves to the position of the mouse not facing it.
Tool = script.Parent
Player = game.Players.LocalPlayer
Camera = game.Workspace.CurrentCamera
Mouse = Player:getMouse()
Tool.Equipped:connect(function()
local weld1 = Instance.new("Weld")
weld1.Parent = Player.Character.Head
weld1.Part0 = Player.Character.Head
weld1.Part1 = Player.Character.Torso
while wait() do
weld1.C0 = CFrame.new(Player.Character.Head.CFrame.p-Mouse.Hit.p)
end
end)
It would help a lot if you helped! Thanks!
