How do I make Data Store inventory system that saves?

How do I make an inventory and a shop gui that adds an item to the Data Store, loads into the inventory, loads it when they join, and saves it after they leave.

1 Like

Have you done the research for this? Doesn’t sound like that’s the case. There are several code samples and tidbits you can pick off if you search and play around in Studio first.

If you don’t know how to use DataStores, then make that your first step: learning how to use them.

Define your requirements and work from here.

4 Likes

Tool Persistence, or ToolDataStores are something that have became not as popular among new coming developers, and, have become quite the challenge!

But, thankfully, there have been methods of DataStores that are easy to use, and simple to operate with! I will provide you with some helpful links to checkout! These links are what helped me, and will help you if you put the time in to read them!

This is a DevForum Post that I found useful!

All of these links should provide you with enough information YOU NEED to start creating your very own DataStore system for tools, and more!

3 Likes

here’s my idea of what you could do for tool saving(of course this is if you have the tools saved in some sort of storage): basically you would store a string value compromising of the tool name in the data store, and then you can clone the certain tool in your inventory based on the name. All though if you’re doing something like just random tools a player can load from id, then it’d require more complex data storage.

1 Like

Here is a tutorial on how to create a persistent inventory system from scratch: PERSISTENT INVENTORY SYSTEM in Roblox Studio - Lua - YouTube