Hello, so I was wondering, is their an easy way to make a frame and its children fade out and then get destroyed? Currently I'm thinking I have to use a for loop, and subtract .1 from the background transparency of each object, and if its a textlabel, subtract .1 from the text transparency etc. There has to be a better way, right?
Use a recursive function to get all objects of a certain type (use IsA("GuiObject")
) and put them in a table. Then using a n
generic for loop inside a numeric for loop to iterate over the table and set the BackgroundTransparency
and TextTransparency
(of objects whose name starts with "Text") of the UI elements.