--		if not self.movingThread then
--			self.movingThread = coroutine.create(
--				function()
--					UpdatePoints:FireServer(1)
--					repeat
--						wait(4/humanoid.WalkSpeed)
--						UpdatePoints:FireServer(1)
--					until not self.isPlayerMoving
--					self.movingThread = nil
--				end)
--			coroutine.resume(self.movingThread)
--		end

	else
		self.queuedToContinueMoving = true
	end
end

function WaypointController:StopTracking()
	self.isPlayerMoving = false
	
	if self.queuedToContinueMoving then
		self.queuedToContinueMoving = false
		
		self:TrackPlayer()
	else
		self.waypointPath:Stop() 
		self.movingThread = nil 
	end
end
