local E=Button.Size.X.Scale local e=Button.Size.Y.Scale Button.MouseEnter:Connect(function(Z,B)Button:TweenSize(UDim2.new(E+.01,0,e+.01,0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,.2,true)end)Button.MouseLeave:Connect(function(Z,B)Button:TweenSize(UDim2.new(E,0,e,0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,.2,true)end)Button.MouseButton1Down:Connect(function(Z,B)Button:TweenSize(UDim2.new(E-.01,0,e-.01,0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,.15,true)end)Button.MouseButton1Up:Connect(function(Z,B)Button:TweenSize(UDim2.new(E+.01,0,e+.01,0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,.15,true)end)
--Button size
local ButtonSX = Button.Size.X.Scale
local ButtonSY = Button.Size.Y.Scale

Button.MouseEnter:Connect(function(x, y)
	--HolaMousee
	Button:TweenSize(
		UDim2.new(ButtonSX + 0.010, 0, ButtonSY + 0.010, 0),
		Enum.EasingDirection.Out,
		Enum.EasingStyle.Back,
		0.2,
		true
	)
end)

Button.MouseLeave:Connect(function(x, y)
	--AdiosMousee
	Button:TweenSize(UDim2.new(ButtonSX, 0, ButtonSY, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Back, 0.2, true)
end)

Button.MouseButton1Down:Connect(function(x, y)
	--Holding mouse
	Button:TweenSize(
		UDim2.new(ButtonSX - 0.010, 0, ButtonSY - 0.010, 0),
		Enum.EasingDirection.Out,
		Enum.EasingStyle.Back,
		0.15,
		true
	)
end)

Button.MouseButton1Up:Connect(function(x, y)
	--Holding mouse
	Button:TweenSize(
		UDim2.new(ButtonSX + 0.010, 0, ButtonSY + 0.010, 0),
		Enum.EasingDirection.Out,
		Enum.EasingStyle.Back,
		0.15,
		true
	)
end)
