#What do I do

1 messages · Page 1 of 1 (latest)

restive monolith
#

I already asked Suphi this but what do you guys think

-- 1
local ds = DataStoreModule.new("Player", player.UserId) -- Value: {PlayerStats = {Coins = 30, Gems = 2}, CollectedCoins = {"Coin1", "Coin2", "Coin3"}}

-- 2
local statsDS = DataStoreModule.new("Player", player.UserId, "PlayerStats") -- Value:  {Coins = 30, Gems = 2}
local coinsDS = DataStoreModule.new("Player", player.UserId, "CollectedCoins") -- Value:  {"Coin1", "Coin2", "Coin3"}
distant arch
#

why three datastorekeys for player data

#

?

restive monolith
#

but I was convinced 1 is better

distant arch
#

in the 2 other examples

#

scopes are sorta like folders for datastores keys, i think it still counts as another key, not sure tho

#

but No.1 is still better

restive monolith
distant arch
#

nope you def did lol

restive monolith
distant arch
#

but like
folder/animals/cat
folder/animals/dog

#

vs
folder/cat/animals
folder/dog/animals

restive monolith
#

I don't think I did that

#

🙏

distant arch
#

i dont think it really matters lol, it will still be stored as another key

restive monolith
#

later

#

@distant arch it goes name > scope > key

#

without scope would be name > key

#

so I'm not tripping

distant arch
#

mb man

#

i am so used to the regular version

#

sorry fr

#

still feel like the first one is the best