for q,r in ipairs(dock:GetChildren())do if r:IsA("\073\109\097\103\101\066\117\116\116\111\110")then r.MouseButton1Click:Connect(function()local q=script.Click local w=TweenInfo.new(jumpDuration,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)local B=(game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")):Create(r,w,{Size=UDim2.new(r.Size.X.Scale*jumpScale,r.Size.X.Offset,r.Size.Y.Scale*jumpScale,r.Size.Y.Offset),Position=UDim2.new(r.Position.X.Scale-(jumpScale-1)/2,r.Position.X.Offset,r.Position.Y.Scale-(jumpScale-1)/2,r.Position.Y.Offset)})B:Play()q:Play()B.Completed:Connect(function()r.Size=UDim2.new(r.Size.X.Scale/jumpScale,r.Size.X.Offset,r.Size.Y.Scale/jumpScale,r.Size.Y.Offset)r.Position=UDim2.new(r.Position.X.Scale+(jumpScale-1)/2,r.Position.X.Offset,r.Position.Y.Scale+(jumpScale-1)/2,r.Position.Y.Offset)end)end)end end
-- Set up the click event handlers for each button
for _, button in ipairs(dock:GetChildren()) do
	if button:IsA("ImageButton") then
		button.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(button, jumpTweenInfo, {
				Size = UDim2.new(
					button.Size.X.Scale * jumpScale,
					button.Size.X.Offset,
					button.Size.Y.Scale * jumpScale,
					button.Size.Y.Offset
				),
				Position = UDim2.new(
					button.Position.X.Scale - ((jumpScale - 1) / 2),
					button.Position.X.Offset,
					button.Position.Y.Scale - ((jumpScale - 1) / 2),
					button.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()
				button.Size = UDim2.new(
					button.Size.X.Scale / jumpScale,
					button.Size.X.Offset,
					button.Size.Y.Scale / jumpScale,
					button.Size.Y.Offset
				)
				button.Position = UDim2.new(
					button.Position.X.Scale + ((jumpScale - 1) / 2),
					button.Position.X.Offset,
					button.Position.Y.Scale + ((jumpScale - 1) / 2),
					button.Position.Y.Offset
				)
			end)
		end)
	end
end
