Anyway to tween a screengui?

So I’m trying to use a tween script but the only problem is… my GUI is a mess and making all parts tween would be a mess, anyway I could fix this?

Here is how many UI elements I have to show its a lot
image

2 Likes

Nevermind I didn’t understand the post clearly

1 Like

maybe you could make a Frame with the size of 1,0,1,0 and then put all the parts you wanna tween in side that frame you made then just tween the frame itself and all its child objects will follow

Yes, use a for loop to iterate through all GUI’s and tween them all at the same time.

local GUIs = YourGuiLocation:GetChildren()

for i, images in pairs(GUIs) do
    if images.ClassName == "ImageLabel" then
        --tween "images" here
    end
end
2 Likes

I tried that, it just screws up the whole GUI and then I have to reposition everything

Are you trying to tween all the Gui elements at the same time? If yes then parent them all under a single frame and tween that frame. Also it is important to note that instead of using Tween Service you can directly tween any Gui elements using TweenSize() or TweenPosition() directly on them which is more efficient as well as simpler and less time consuming to write.

1 Like