This is the script:
local t = game:GetService("TweenService")
local goal = {}
goal.Size = UDim2.new({0, 182},{0, 64})
local m = t:Create(script.Parent, TweenInfo.new(2), goal)
local goal1 = {}
goal1.Size = UDim2.new({0, 188},{0, 50})
local m1 = t:Create(script.Parent, TweenInfo.new(2), goal1)
script.Parent.MouseEnter:Connect(function()
m:Play()
end)
script.Parent.MouseLeave:Connect(function()
m:Pause()
m1:Play()
end)
But it gets so smaller. Please help?
The original size is {0, 188},{0, 50}

1 comment
what is the size of the button originally?