Best way to dynamically create a shop GUI for each item that can be bought?

I am making a game that will have many different purchasable weapons (which are currently stored in ServerStorage) but I can’t figure out the best way to include them in a GUI shop.

Ideally I wouldn’t have to manually make a new GUI button for each weapon, but it would automatically add an additional button for each weapon placed in ServerStorage.

Would I have to generate the GUI with code for each person when they join? Is there a better way? Thanks in advance.

1 Like