So basically I have script located inside an NPC's head which is supposed to make him walk to the player (1 player server btw). However, he instead goes straight for the wall. Could somebody help me fix this problem please?
Script:
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
while true do
wait(.1)
script.Parent.Parent.Humanoid.WalkToPoint = Vector3.new(char.HumanoidRootPart.Position)
end
end)
end)
