DataStore Questions

Hi, is this a valid way to setup a DataStore? Notice, this is just the template of what it’d look like.

StatsModule.Template = {
	Gems = 0,
	Coins = 0,
	Rank = {
		Level = 0,
		Experience = 0
	},
	Quests = {
		Complete = 0,
		Current = "None",
		Progress = 0	
	},
	Deaths = 0,
	Kills = 0,
	TimePlayed = 0,
	LastLoggedOn = 0,
	LogOnStreak = 0
}

Can I use this DataStore as a OrderedDataStore? To make leaderboards out of the TimePlayed, Kills, Deaths, Coins, and Gems?

So summary my questions are…

  1. Is the template valid?
  2. Can certain parts of this DataStore be used for leaderboards?
1 Like

Sorry no, OrderedDataStore only takes in a positive integers. However this data structure would work perfectly with a normal DataStore. You will need to use several OrderedDataStores for a leaderboard.

1 Like