How to save a players inventory? (Data Stores)

Hello fellow developers,

I have a question regarding Data Stores. In my game, a player has an inventory of houses. The inventory is a folder containg boolean values. By default they are false, (because the player has not bought them yet), and I am trying to figure out a way to save the players inventory when they leave and rejoin. I am not very proficient with data stores, and any help would be appreciated!

Here is a screenshot:

Screenshot 2021-01-21 202753

3 Likes

You can detect when the player leaves, and save their data. When the player rejoins, you can load their data. Data Store

2 Likes

Thank you! I now understand Data Stores much better. I had forgotten about the developer hub lol

4 Likes

No problem, be sure to mark my post as a solution.

2 Likes