Adding Size To Ui

I am in a bit of a hurry , but is there a better method to add+ size in the tween in a good way

local gui --smth
local size = Udim2.New(0.5,0,0.5,0) -- lets say the  gui was size 0.4 x , 0.4 y how would I add the 0.1 I tried Udim2.New(gui.Size + , but that didn't really work in the way of mine

While wait() do
should be smooth

GuiObjects have the members TweenSize and TweenPosition. They’re really simple to use if you look up the parameters.

I know tween, but I mean that the guiobject is added a little bit of size without needing to specify the size of the gui object in a good way

guiObject.Size = UDim2.new(guiObject.Size.X.Scale + .1 , 0 , guiObject.Size.Y.Scale +.1 , 0)
2 Likes