Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Getting DataStore data without using OrderedDataStore

How am I able to print all of that data inside of my datastore database without knowing the keys?

Every example I've seen uses OrderedDataStore, which isn't released yet.

1 answer

✓ Accepted answer

Currently there is no way to get all of the keys within a datastore.

However, you can manage a list yourself by having a main key that consists of a table of all other keys. Whenever you create a new key, call UpdateAsync on the main key and add that new key to the table.

4 comments

0

Thank you. Now that you mention it, I remember Unclear saying that he managed his player database this way.

0

Yeah, that's how I did it.

0

Wait, so how can I update the key's table without deleting all of the previous data?

0

Just update it like you regularly would with table[key], and update over the datastore.

This discussion is preserved as it was. New answers, comments, and votes are closed.