Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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

4 comments

0

0,0,0,0 makes it invisible

0

small as hell till it appears invisible. It actually isn't. It just dosen't have a dimension. as in. NO size

0

imagine and atom. can you see it? no right? 0 x 0 is smaller than an atom.

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.