Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Looping over DataStore?

Asked by
Omarstein 100
9 years ago

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

Log in to vote
1
Answered by
DataStore 530 Moderation Voter
9 years ago

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

Ad

Answer this question