mirror of
https://github.com/codeninjasuk/roblox-world-24.git
synced 2024-11-22 07:28:08 -05:00
9 lines
233 B
C#
9 lines
233 B
C#
|
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
|