Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What do I need to be doing differently? (TweenSize)

Asked by
F8de 2
7 years ago
Edited 7 years ago

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?


Button = script.Parent local click = false Button.MouseButton1Click:connect(function() if not click then Button.Text = "" Button:TweenSize(UDim2.new(0,0,0,0), "Out", "Quint", 0.3, "false") click = true end end)

I've played around with the values, and nothing seems to enlarge it.

1 answer

Log in to vote
1
Answered by 7 years ago
Edited 7 years ago

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

0
0,0,0,0 makes it invisible abnotaddable 920 — 7y
0
small as hell till it appears invisible. It actually isn't. It just dosen't have a dimension. as in. NO size DrPredablox 153 — 7y
0
imagine and atom. can you see it? no right? 0 x 0 is smaller than an atom. DrPredablox 153 — 7y
0
Yep, thank you. I tried that before and it didn't encompass the whole screen, but I figured I'd try tweening the position too and that did the trick. F8de 2 — 7y
Ad

Answer this question