I'm trying to figure out how to tween the size of my gui button so it smoothly encompasses the size of the screen, but tween seems to only shrink it.. do I need to be using a different method, or what?
01 | Button = script.Parent |
02 |
03 | local click = false |
04 | Button.MouseButton 1 Click:connect( function () |
05 | if not click then |
06 | Button.Text = "" |
07 | Button:TweenSize(UDim 2. new( 0 , 0 , 0 , 0 ), "Out" , "Quint" , 0.3 , "false" ) |
08 | click = true |
09 | end |
10 | end ) |
I've played around with the values, and nothing seems to enlarge it.
Button:TweenSize(UDim2.new(0,0,0,0)
Makes the gui Small as hell
try
Button:TweenSize(UDim2.new(1,0,1,0)
That should eat your screen
For more info about UDim2 and how to use them click here