mirror of
https://github.com/codeninjasuk/roblox-world-24.git
synced 2024-11-22 15:38:05 -05:00
Create path_finding_npc.cs
This commit is contained in:
parent
019d713cf9
commit
125d8a9aa2
1 changed files with 8 additions and 0 deletions
8
path_finding_npc.cs
Normal file
8
path_finding_npc.cs
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
local waypoints = game.Workspace.Waypoints
|
||||||
|
local npc = script.Parent:WaitForChild("Humanoid")
|
||||||
|
while true do
|
||||||
|
for waypoint = 1, #waypoints:GetChildren() - 1 do
|
||||||
|
npc:MoveTo(waypoints[waypoint].Position)
|
||||||
|
npc.MoveToFinished:Wait()
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue