Access random hat from catalog?

I’m creating an NPC, and want this NPC to have a random appearance every time the server starts. Is it possible to InsertService a random hat from the catalog in order to put on this NPC?

I believe there is a way somewhere to get all the items from the catalog. You might even be able to filter it by type (although you may need to do that manually).

I can’t remember for sure; however just from a quick search for ‘catalog’ in the toolbox gave me a good return – the first result, called ‘Catalog GUI’ should have what you need to get everything.

1 Like