Pretty short question but is it fine for a game to have more than one DataStore?
Because I’m still not sure if it’s okay to store Player datas and settings separately. > <
These things probably gonna be pretty small so it should be fine right?
if that > < is an emote please never use emotes again
i mean, you can, but why would you?
you can pretty much store everything in one datastore, here’s an example:
playerDataTable[plr.UserId] = {
TotalKills = totalKills,
TotalDeaths = totalDeaths,
TotalCurrencyEarned = totalCurrencyEarned,
TotalVoidstonesEarned = totalVoidstonesEarned,
TotalXpEarned = totalXpEarned,
CurrentLevel = currentLevel,
CurrentCurrency = currentCurrency,
CurrentVoidstones = currentVoidstones,
CurrentXp = currentXp,
CurrentClass = currentClass,
CurrentWhisper = currentWhisper,
Settings = {
-- Default values
["Field of View"] = 90,
["Classic Aim Down Sights"] = false,
["Vitals GUI Color"] = Color3.fromRGB(255,255,255),
["Weapon GUI Color"] = Color3.fromRGB(255,255,255),
["Visible Viewmodel"] = true,
["Show Crosshair"] = true,
["First Person Tracers"] = true,
["Show Blood"] = true,
["Show Rewards"] = true
},
Clothing = {
-- Default values
["tops"] = "StarterTop_Shirt",
["bottoms"] = "StarterBottom_Pants"
}
smh… cant even have fun in devforum
i see, im just wondering if itll be fine since i like to categorize stuff ig idk :p
you can use more than one datastore, but i believe it’ll take up memory faster and hit the datastore limit. one is necessary, but it doesn’t hurt to have a second one. just manage and optimize your code
that was satire, please use these corny emotes
well, for every reaction there is an equal and opposite reaction (this makes what i’m about to say sound really smart)
if you have multiple datastores, you’re gonna hate yourself for using those because you’re constantly gonna have to shuffle between them when refactoring your code (or anything similar)
but if you also have multiple datastores, your data is a lot more “organized”
TL;DR
more datastores = organized data but messy datastores
I see, alright thanks yall! ^ ^
Nah and it’s best that way