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

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

Asked by
D3VRO 66
5 years ago

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

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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 <number> 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!

0
Thank you! D3VRO 66 — 5y
0
please use [desc](url) for links. User#5423 17 — 5y
Ad

Answer this question