local function S(S)for N=2,#S._waypoints,1 do if(S._waypoints[N].Position-S._waypoints[N-1].Position).Magnitude>.1 then return N end end return 2 end

local function getNonHumanoidWaypoint(self)
	--Account for multiple waypoints that are sometimes in the same place
	for i = 2, #self._waypoints do
		if (self._waypoints[i].Position - self._waypoints[i - 1].Position).Magnitude > 0.1 then
			return i
		end
	end
	return 2
end
