Tweening an entire GUI

I’m working on a GUI and I was wondering how I could tween the entire GUI so that I don’t have to individually write out all the different components and uDim2 them all by themselves.

If push comes to shove, I totally can do it the way above; I’m just looking for a good shortcut.

2 Likes

Maybe you could try putting all the GUI elements into a frame, and then only tweening the frame.

You can do that? They’re all already in a Frame so that saves me the effort. I’ll try it rn.

Yes, put the elements in a frame the size of the whole screen. Then tweeting the frame will move all of the elements inside.

1 Like

Yes. Something like this should work:
frame:TweenPosition(arguments)

Not sure what the arguments of :TweenPosition are

GuiObject:TweenPosition(Udim2.new(scaleX, offsetX, scaleY, offsetY), EasingDirection, EasingStyle, Time)
1 Like