DataStoreService:GetDataStores() and DataStore:GetKeys()

This should be high enough of a context level that only the command bar / plugins can access it so exploiters, somehow, somewhere can’t get their hands on it.

Basically, I’d like the create a plugin that displays all of the datastores and their keys in a script, in a nice format, to allow for easy reading/writing (mostly reading) – I suppose ROBLOX already has some sort of way to do this already, so it’d be nice to get access to it for this purpose.

1 Like

We pretty much already have this, but in a slightly less obvious format. Whenever you create a datastore add a value to an ordered data store named “Datastores”. The key would be your datastore’s name and the value would be whatever. Whenever you create a key in your datastore add a key in an ordered data store named datastorename…“Keys”. The key would be the key and the value would be whatever.

Now you can use GetSortedAsync in your ordered data store to retrieve the list in a clean and scale-friendly way.