Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do I make a NPC walk to a specific spot when timed?

Asked by
leathei -5
6 years ago
Edited 6 years ago

I don't know how to script. But I tried getting a walking NPC and tried to edit the script. That did not work

** So I tried looking up tutorials **

That did not work

Since I don't know how I tried using this script.

script.parent.("Example NPC") (walk.distance ("0,5,6") -- The distance I used I believe. ("Animate") walk. position.as.earned

end end end

(I searched up the script)

0
Humanoid:MoveTo() Wafflecow321 457 — 6y

1 answer

Log in to vote
0
Answered by
zyrun 168
6 years ago

Try putting this in the NPC:

-- Assuming your NPC has a humanoid...
script.Parent.Humanoid:MoveTo(0, 0, 0) -- Replace the 0's with desired coordinates. (X, Y, Z)
0
Thank you so much for the help. leathei -5 — 6y
Ad

Answer this question