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

How to script a NPC to move to part(s)? [closed]

Asked by 5 years ago

I need some help creating script to move to part(s), it'll appreciated. I'll also give you credit in my game's description. This is my script: `local pathfinding = workspace:FindFirstChild("managerpath") local pathfinding_part1 = workspace.managerpath:WaitForChild("D1") local pathfinding_part2 = workspace.managerpath:WaitForChild("D2") local pathfinding_part3 = workspace.managerpath:WaitForChild("D3") local pathfinding_part4 = workspace.managerpath:WaitForChild("D4")

while true do wait() script.Parent.Humanoid.WalkToPart = pathfinding_part1 wait(2) script.Parent.Humanoid.WalkToPart = pathfinding_part2 wait(2) script.Parent.Humanoid.WalkToPart = pathfinding_part3 end`

0
Plus I copied and pasted it into scriptinghelpers.org so it's messy. diorlandripp 4 — 5y
0
use the code block tks XviperIink 428 — 5y
0

Closed as Non-Descriptive by hiimgoodpack and BlackOrange3343

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?