UserInputService.DeviceAccelerationChanged:Connect(changeAcceleration)clickButton.Activated:Connect(function(J,Y)if cooldown then return end if isInTutorial()then return end local U=J.UserInputType if U==Enum.UserInputType.MouseButton1 or U==Enum.UserInputType.Touch then registerMovement()UpdatePoints:FireServer(1)end end)controller.CooldownFinished:Connect(function()if not cooldown then return end cooldown=false clickButton.Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\053\051\048\049\053\055\051\055\052\055"end)
-- Connections
UserInputService.DeviceAccelerationChanged:Connect(changeAcceleration)

clickButton.Activated:Connect(function(input, gameProcessed)
	if cooldown then
		return
	end
	if isInTutorial() then
		return
	end

	local inputType = input.UserInputType
	if inputType == Enum.UserInputType.MouseButton1 or inputType == Enum.UserInputType.Touch then
		registerMovement()
		UpdatePoints:FireServer(1)
	end
end)

controller.CooldownFinished:Connect(function()
	if not cooldown then
		return
	end
	cooldown = false
	clickButton.Image = "rbxassetid://5301573747"
end)
