How do I store a value in datastore2

Hi devs
So I want to make a leader board and i dont know how to store a value like

   local leaders = {
   ["first"] = ["hellothere3681", 1.7682]
   ["second"] = ["goodbyethere", 2.6880]
}

how would i do this?
also how would i get this value in datastore 2

Datastore2 doesn’t support leaderboards, you need to use OrderedDataStores for leaderboards.

what is that can you show me example code?

There are also tutorials about it

1 Like