How would I go about making an inventory system?

Recently, I read an article on the DevForum about Serialization and wanted to make an inventory system. I am not asking for a script, but I wanted to know the best way to make an inventory system. I’ve thought of a few things such as a folder with values, a table that gets added per person, and just a UI that saves with serialization. Any ideas on how I should go about making an inventory system would be much appreciated.

Thanks in advance.

4 Likes

ProfileService, just create a table called “Inventory” and put data inside that table,
for example

Inventory = {
   "Wood",
   "Iron",
   "Iron",
}
1 Like

Would there be a benefit in making this a dictionary? I would want this to stack in a UI (ex Wood: 5) and having a dictionary with the value being the amount of the thing they have seems like it could work better.

1 Like

Yeah of course, you can do whatever you want, really

Alright. I’ve never used ProfileService before so should the table just be saved in a server script and cleaned up (and saved) after they leave?

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.