-- Define the jump duration

local jumpDuration = 0.1

btn.MouseButton1Click:Connect(function()
			-- Create the jump tween
			local Click = script.Click
			local jumpTweenInfo = TweenInfo.new(jumpDuration, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
	local jumpTween = game:GetService("TweenService"):Create(btn, jumpTweenInfo, {
		Size = UDim2.new(btn.Size.X.Scale * jumpScale, btn.Size.X.Offset,
			btn.Size.Y.Scale * jumpScale, btn.Size.Y.Offset),
		Position = UDim2.new(btn.Position.X.Scale - ((jumpScale - 1) / 2),
			btn.Position.X.Offset, btn.Position.Y.Scale - ((jumpScale - 1) / 2),
			btn.Position.Y.Offset)
			})

			-- Play the jump tween
			jumpTween:Play()
			Click:Play()

			-- Reset the button's size and position after the jump is complete
			jumpTween.Completed:Connect(function()
		btn.Size = UDim2.new(btn.Size.X.Scale / jumpScale, btn.Size.X.Offset,
			btn.Size.Y.Scale / jumpScale, btn.Size.Y.Offset)
		btn.Position = UDim2.new(btn.Position.X.Scale + ((jumpScale - 1) / 2),
			btn.Position.X.Offset, btn.Position.Y.Scale + ((jumpScale - 1) / 2),
			btn.Position.Y.Offset)
			end)
end)
