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

How do I get values from my regular datastore and put them into the OrderedDataStore?

Asked by 5 years ago
Edited 5 years ago

So I'm not requesting a script or anything. I'm just trying to figure this out. I'm trying to make a leaderboard for my game. I currently have a regular DataStore that has people's points. How do I use an existing DataStore onto an OrderedDataStore?

So for example... I have a regular DataStore like this:

local DataStoreService = game:GetService("DataStoreService")
local playerExperienceStore = DataStoreService:GetDataStore("Moneyz")

Would I put my regular DataStore name in the OrderedDataStore name and it would get those values from my regular datastore? Like this?

local DataStoreService = game:GetService("DataStoreService")
local PointsODS = DataStoreService:GetOrderedDataStore("Moneyz") --putting my regular datastore name will get the values from there?

That's what I'm trying to understand here. I just can't seem to find an answer... Is that how OrderedDataStores even work? Am I looking at this completely wrong?

Answer this question