Get all keys and values in a datastore

Hi devvies.

I was wondering how you could get fetch all data from every player stored in the DB. (So not the players that are in the game, but all players that are stored somehow in the DB.)

I’ve seen things like GetOrderedDataStore, and we’re not going to use that.

yeah that lol

Thanks in advance.

i dont now so much about scripting but i think if in the DB you create a folder or something there u store the pepole

You can’t create a folder in the datastore.

There is no way you can get all keys in a normal datastore, you would need to use OrderedDataStore for this (or you could create your own saving system).

2 Likes

ah ok i dont know nothing about scripting in datastores
thanks