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

How would I get all of the information from a datastore?

Asked by 10 years ago

I've been thinking about implementing a top 10 leaderboard in a few of my games, but I don't know how to get all the data from a specific datastore.

1 answer

Log in to vote
0
Answered by 10 years ago
local infoDataStore = game:GetService("DataStoreService"):GetDataStore("leaderboardInfo")

if infoDataStore:GetAsync("points") == 100 then
--do stuff
end
0
That's not what I mean. ChipioIndustries 454 — 10y
Ad

Answer this question