local p = script.Parent
local dis = 30
while true do wait()
for i,v in pairs(game.Players:GetChildren()) do
if (p.Torso.Position-v.Character.Torso.Position).magnitude <= dis then
script.Parent.Humanoid:WalkToPart(v.Character.Torso)
print("Walking")
end
end
end
COMMUNITY QUESTION
How would I make my NPC move?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Umm...what exactly is the problem here? Everything in the script looks fine.