Multiple datastores?

I have a quick question about using multiple datastores. I currently have a datastore for like player data and things I need to save like level, inventory, etc however I decided to try and make admin commands and I was doing a ban command and from my understanding, I need to use datastores so I can save if the player is banned should I make a separate datastore for this or just use the one I have?

You should use the same datastore to store the banned users. It’s much more convenient and easier to using the same datastore.

[EDIT: I rephrased some things that I incorrectly phrased.]

I would try to limit the number of data stores you have, if you can get away with one that is the best case scenario. For banning someone, you could just make an IsBanned variable that is part of the player table in player data.

Hope this helps!

It doesn’t matter if you have several datastores, but it’s suggested to have just one datastore for your character. It may be way easier to call the ban data, though you could just set your data to a table like so:


local data = {}