of     1   

IiverpooI
#185154601Friday, March 11, 2016 10:52 PM GMT

will pay 700 robux for this script: Prints the top 10 values in a datastore and also prints the key of the value Heres some stuff you will need to know: datastore = game:GetService('DataStoreService'):GetDataStore('R') key = 'usertest_'..p.userId I know you need to use ordereddatastores but I simply cannot do it so if any of you can do it, you will be paid 700 robux. If you're not BC, I can pay you with group payouts but you will only receive around ~500 robux if I pay you with group payouts.
SpeedyJZoel
#185155326Friday, March 11, 2016 11:03 PM GMT

Not sure there is even a way to do this without the key to the datastore..
IiverpooI
#185155923Friday, March 11, 2016 11:13 PM GMT

???????????????????
AntiFiter
#185156233Friday, March 11, 2016 11:18 PM GMT

datastore = game:GetService('DataStoreService'):GetOrderedDataStore('R') key = 'usertest_'..p.userId local lb = ods:GetSortedAsync(false, 10) local data = lb:GetCurrentPage() for i,v in pairs (data) do print("value is " .. v ) print("key (player) is " .. i) end
AntiFiter
#185156273Friday, March 11, 2016 11:19 PM GMT

http://www.roblox.com/Resurrection-T-Shirt-item?id=215003822 If it the script above doesn't work post back
IiverpooI
#185173243Saturday, March 12, 2016 4:09 AM GMT

Sorry I replied so late. Doesn't print anything, doesn't even say anything in the output. Any ideas? I thought this would be simple but it's really hard for some reason.
KLGA
#185174379Saturday, March 12, 2016 4:34 AM GMT

OrderedDataStore and DataStore are different things, I think.. You're going to have to redo your whole DataStore using OrderedDataStore instead.
AntiFiter
#185189000Saturday, March 12, 2016 2:49 PM GMT

This saves each players values are they leave. key = 'usertest_'..p.userId datastore = game:GetService('DataStoreService'):GetOrderedDataStore('R'..key) local lb = ods:GetSortedAsync(false, 10) local data = lb:GetCurrentPage() for i,v in pairs (data) do print("value is " .. v ) print("key (player) is " .. i) end -- New game.Players.PlayerRemoving:connect(function(Player) datastore:SetAsync("Score", Player.leaderstats.Score.Value) -- Set to something end
Dev_Ryan
#185189193Saturday, March 12, 2016 2:54 PM GMT

@AntiFiter You have: datastore = game:GetService('DataStoreService'):GetOrderedDataStore('R'..key) local lb = ods:GetSortedAsync(false, 10) Your "ods" is not defined. Did you mean "datastore" ? So it should be: datastore = game:GetService('DataStoreService'):GetOrderedDataStore('R'..key) local lb = datastore:GetSortedAsync(false, 10)
AntiFiter
#185189388Saturday, March 12, 2016 2:59 PM GMT

@above yes

    of     1