I realize this is likely a very basic question but I can’t find anything on how to do this.
The current state of my script is that user input in panel 1 results in gui changes to panel 2 — that is the desired outcome.
My problem is if the user changes his input in panel 1 the new gui elements in panel 2 get appended to the previous gui elements. That is not the desired outcome. The goal is to have panel 2 return to an empty state and then be populated based on the user input every time.
I’ve googled for how to remove a panel, how to delete a panel, how to clear a panel, etc and I can’t find anything.
I know how to remove individual gui elements so a solution would be to remove all the elements using the previous input and then repopulate using the new input but that seems like it would be more cumbersome than necessary — I have to imagine that there is a way to just clear all of panel2 and then repopulate.