local function K(K)if K._currentWaypoint==#K._waypoints then return end K._position._count=(K._agent.PrimaryPart.Position-K._position._last).Magnitude<=.07 and K._position._count+1 or 0 K._position._last=K._agent.PrimaryPart.Position if K._position._count>=K._settings.COMPARISON_CHECKS then if K._settings.JUMP_WHEN_STUCK then setJumpState(K)end declareError(K,K.ErrorType.AgentStuck)end end
--Refer to Settings.COMPARISON_CHECKS
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
