local function F(F)local y=TweenInfo.new(tweenDuration,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)local t=(game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")):Create(F,y,{Size=UDim2.new(F.Size.X.Scale*magnificationScale,F.Size.X.Offset,F.Size.Y.Scale*magnificationScale,F.Size.Y.Offset)})click:Play()t:Play()local n=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(F,n,{Position=UDim2.new(F.Position.X.Scale-(magnificationScale-1)/2,F.Position.X.Offset,F.Position.Y.Scale-(magnificationScale-1)/2,F.Position.Y.Offset)})j:Play()end local function y(F)local y=TweenInfo.new(tweenDuration,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)local t=(game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")):Create(F,y,{Size=originalSizes[F]})t:Play()local n=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(F,n,{Position=originalPositions[F]})j:Play()end

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
