Getting an orderded datastore from a list datastore?
1 | local DataStoreService = game:GetService( "DataStoreService" ) |
2 | local MainDataStore = DataStoreService:GetDataStore( "MainDataStore" ) |
3 | local InfectedLeaderboard = MainDataStore [ "TotalInfected" ] |
4 | local InfectedLeaderBoard = DataStoreService:GetOrderedDataStore(InfectedLeaderboard) |
I'm trying to create a global leaderboard and I save everyone's progress in a table. I have tried multiple ways but it keeps giving me this error
1 | TotalInfected is not a valid member of GlobalDataStore |
Any ideas?