local t=Button.Size.X.Scale local Z=Button.Size.Y.Scale Button.MouseEnter:Connect(function(u,B)Button:TweenSize(UDim2.new(t+.006,0,Z+.006,0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,.2,true)end)Button.MouseLeave:Connect(function(u,B)Button:TweenSize(UDim2.new(t,0,Z,0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,.2,true)end)Button.MouseButton1Down:Connect(function(u,B)Button:TweenSize(UDim2.new(t-.006,0,Z-.006,0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,.15,true)end)Button.MouseButton1Up:Connect(function(u,B)Button:TweenSize(UDim2.new(t+.006,0,Z+.006,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.006, 0, ButtonSY + 0.006, 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.006, 0, ButtonSY - 0.006, 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.006, 0, ButtonSY + 0.006, 0),
		Enum.EasingDirection.Out,
		Enum.EasingStyle.Back,
		0.15,
		true
	)
end)
