trying to write a lua script where an npc walks to the player, code that i have struggled in troubleshooting is basically as follows:
enemy = script.parent
torso = player:FindFirstChild("UpperTorso")
position = torso.Position
enemy.humanoid:MoveTo(position)
my code for getting the player works so thats not something im worried about
i tried doing enemy.Humanoid:MoveTo(Vector3.new(999,0,999)) and the roblox model still does not move, this model is spawned in using another script, and no errors appear, ive even tried using print statements to debug, but its like everything works except for the fact that it isnt moving. nothing is anchored or anything either.
Chucken Noris is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.