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

What is the difference between getting a Datastore and an OrderedDatastore?

It came across my mind that I really never understood why some people use Datastore and OrderedDatastore. Is OrderedDatastore a way more secure way of saving players stats or something else?

1 answer

✓ Accepted answer

DataStores allow you to save data such as arrays, tables, and other strings and numbers. You cannot get a list of Data with a DataStore in a convenient fashion.

OrderedDataStores are mostly used for things like leaderboards as you can use functions to get an ordered list of the top players with a Data type. OrderedDataStores, because of this, are usually only used to save integers. You can only save positive integers (whole numbers) with OrderedDataStores.

Read more here: https://developer.roblox.com/api-reference/class/OrderedDataStore

If this helped, upvote it and mark it correct! Thanks!

2 comments

0

Thank you!

0

please use desc for links.

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