local function b(b)local H=TweenInfo.new(tweenDuration,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)local J=(game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")):Create(b,H,{Size=UDim2.new(b.Size.X.Scale*magnificationScale,b.Size.X.Offset,b.Size.Y.Scale*magnificationScale,b.Size.Y.Offset)})click:Play()J:Play()local Y=TweenInfo.new(tweenDuration,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)local w=(game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")):Create(b,Y,{Position=UDim2.new(b.Position.X.Scale-(magnificationScale-1)/2,b.Position.X.Offset,b.Position.Y.Scale-(magnificationScale-1)/2,b.Position.Y.Offset)})w:Play()end local function H(b)local H=TweenInfo.new(tweenDuration,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)local J=(game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")):Create(b,H,{Size=originalSizes[b]})J:Play()local Y=TweenInfo.new(tweenDuration,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)local w=(game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")):Create(b,Y,{Position=originalPositions[b]})w:Play()end
-- Set up the mouse enter and leave event handlers for each button
local function onButtonEnter(button)
	local sizeTweenInfo = TweenInfo.new(tweenDuration, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
	local sizeTween = game:GetService("TweenService"):Create(button, sizeTweenInfo, {
		Size = UDim2.new(
			button.Size.X.Scale * magnificationScale,
			button.Size.X.Offset,
			button.Size.Y.Scale * magnificationScale,
			button.Size.Y.Offset
		),
	})
	click:Play()
	sizeTween:Play()

	local positionTweenInfo = TweenInfo.new(tweenDuration, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
	local positionTween = game:GetService("TweenService"):Create(button, positionTweenInfo, {
		Position = UDim2.new(
			button.Position.X.Scale - ((magnificationScale - 1) / 2),
			button.Position.X.Offset,
			button.Position.Y.Scale - ((magnificationScale - 1) / 2),
			button.Position.Y.Offset
		),
	})
	positionTween:Play()
end

local function onButtonLeave(button)
	local sizeTweenInfo = TweenInfo.new(tweenDuration, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
	local sizeTween = game:GetService("TweenService"):Create(button, sizeTweenInfo, {
		Size = originalSizes[button],
	})
	sizeTween:Play()

	local positionTweenInfo = TweenInfo.new(tweenDuration, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
	local positionTween = game:GetService("TweenService"):Create(button, positionTweenInfo, {
		Position = originalPositions[button],
	})
	positionTween:Play()
end
