-- Local Functions

local function isInTutorial()
	return TutorialPanels.Visible
end

local function makeShoeParticle()
	local particle = ShoeParticle:Clone()
	local randomX = (math.random() - .5)/10
	particle.Position = UDim2.fromScale(.5 + randomX, .9)
	particle.Parent = GameplayUi
	TweenService:Create(particle, TweenInfo.new(.75), {
		Position = UDim2.fromScale(particle.Position.X.Scale, .85),
		Rotation = math.random(-50, 50),
		Size = UDim2.fromScale(1, .065),
		ImageTransparency = 1,
	}, function()
		particle:Destroy()
	end):Play()
end

local function registerMovement()
	cooldown = true
	clickButton.Image = "rbxassetid://5301573887"
	makeShoeParticle()
	-- Have the player move to the next waypoint and tell the waypoint tracker to be
	-- active in checking if they've reached the waypoint. 
	controller:TrackPlayer()
end
