I am attempting to make a script that will recolor an entire GUI, or more specifically every child typed as a frame or imagebutton/imagelabel.
I have already managed to get every child (using a for loop) of the specific types and color them accordingly, but some children of the GUI have their own children within them.
Tree example:
ExampleGUI
^ Frame1
–^ImageButton
^ Frame2
–^ImageLabel
Please note that I wish to keep the organization of the GUI this way.
The direct children of the GUI are colored correctly, but the children of those children are ignored.
Is there any way to construct a function to do something to every direct descendant of the GUI as well as any other children of the direct descendants?
I searched my problem on the hub, but I cannot find anything. This may be due to not knowing how to ask this question.