Selection Menu Help

Hello, so I’m trying to make a selection menu for my game where the player clicks a UI button which would then allow the building they chose to appear. The problem is that the player will also be selecting other stuff that they want to appear as well, and I want the things they selected to appear at the same time when they press done. The things they will be selecting will be on a different page and they’re only allowed to pick one per page. How will I go about doing this?

Store the selected objects in a table instead of spawning it. Then when they press done spawn all the objects in the table.

Thank you so much! I finally figured it out.