local function h(h)if h._currentWaypoint==#h._waypoints then return end h._position._count=(h._agent.PrimaryPart.Position-h._position._last).Magnitude<=.07 and h._position._count+1 or 0 h._position._last=h._agent.PrimaryPart.Position if h._position._count>=h._settings.COMPARISON_CHECKS then if h._settings.JUMP_WHEN_STUCK then setJumpState(h)end declareError(h,h.ErrorType.AgentStuck)end end

local function comparePosition(self)
	if self._currentWaypoint == #self._waypoints then return end
	self._position._count = ((self._agent.PrimaryPart.Position - self._position._last).Magnitude <= 0.07 and (self._position._count + 1)) or 0
	self._position._last = self._agent.PrimaryPart.Position
	if self._position._count >= self._settings.COMPARISON_CHECKS then
		if self._settings.JUMP_WHEN_STUCK then
			setJumpState(self)
		end
		declareError(self, self.ErrorType.AgentStuck)
	end
end
