#How do i save inventories/shop?
1 messages · Page 1 of 1 (latest)
data stores
save an array of your values or create an individual datastore for each value
** You are now Level 3! **
dude im already using datastores
im not asking HOW to save im asking how to save PROPERLY im using profileservice and adding boolvalues into the player for each item and doing it like if plr.items.sword.value == true then -- wtv function to give the plr the sword
and this is cursed as hell
i need to know how others properly save that data and load it
and if i use datastores properly where do i save?? an attribute inside the player? i dont understand
datastores are unrelated to the player instance. You can just use the player's userID as a key and all the values as data
I personally use a folder containing strings. I process it into a large array with all the player's inventory and save the array into it's own datastore