Best way to code gui?

Hello, currently Im making a main menu for my game that players will see as soon as they load in. This main menu has a lot of seperare screens, so it is imperative that players can swap between them with ease. I Could just change the visibility of different screens, but personally I like having transparency transitions between screens, meaning i have to code a transparency tween for every single ui element in both screens, which as you can imagine is not great to work with. So Im wondering if there are any open source gui implementations or techniques for gui organization or transitions.

1 Like

A simple way to tween the transparency of a whole GUI object looks something like this:

for _, v in pairs(GUI:GetChildren()) do
   if v:IsA("GuiObject") then
      -- tween
   end
end

Another way to make a navigable menu could be by using UIPageLayout, which has built-in page transitions.

1 Like