How can I do patrolling using SimplePath?

Hi everybody. Faced with such a problem as patrolling the npc area. I wrote a script using the SimplePath module, in which the npc goes to a single point. How can I make it go through several points and then return to the starting point?

local function InFov()
path:Stop(Target)
end

path.Blocked:Connect(function()
path:Run(Target)
end)

local function OffFov()
path.WaypointReached:Connect(function()
path:Run(Target)
end)

path:Run(Target)

end

Here is a bit of a script where I have a problem