Adding purchasable items to a datastore more efficiently?

Hey DevForum!

I am currently making a shop in my game where you can buy kill effects. I’ve run into an obstacle though. The items are only indexed by string values, which are their names. The only way I can think of doing this is making a folder where all of their purchased items are saved, but my gut tells me there’s a better way to add the newly bought items to the inventory datastore without making extra work for myself. If anyone knows how to do this, please let me know.

Thanks!

you would just need to use a table and implement it into the player datastore

Inventory={
“sword1”,
“sword2”
}

It could be an intricate process, I would recommend finding a community resource or tutorial on it.