diff --git a/path_finding_npc.cs b/path_finding_npc.cs new file mode 100644 index 0000000..e5c7671 --- /dev/null +++ b/path_finding_npc.cs @@ -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