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

Return table of a datastore?

Asked by 6 years ago

Hello, I'm wanting to do a top 10 kind of leaderboard, but i don't actually know how to return the all the datastores as a table.

Eg:

table = game:GetService("DataStoreService"):GetDataTable(nameofstore)

print(table[1])

How would i make that? Thank you.

0
Using a normal datastore is quite inefficient, you should instead use OrderedDataStores. spr_ead 47 — 6y
1
That's a load of bollocks. User#6546 35 — 6y
1
But he's at least partly right. For this context, you do want to look into OrderedDataStores User#6546 35 — 6y

Answer this question