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

Looping over DataStore?

Is it possible to loop over the keys and values of a given DataStore in a game? If so, could someone please give me a hint on how to do it?

1 answer

✓ Accepted answer

There's a limit to the amount of requests you can send to a DataStore, so it's not really possible for you to loop over an ordinary DataStore unless you're looping over a table you've saved to a key. If you want to do this your best bet would be to use an OrderedDataStore or to save the table of data to one key in the DataStore.

http://wiki.roblox.com/index.php?title=Ordered_data_store

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