Hello, I am having a hard time with data stores. I just cant wrap my head around it. I want to create a data saving system in my permadeath game, where the user loads in the game etc. But if they leave it will save their data like Level, Weapon, and also I have 2 folder I want to have also called Signs (which is just the plain old abilities) and Blessings (which are just like attributes like, you longer lose speed when blocking something like that). These will also save as I don’t want to players attributes or abilities to not save.
However, I don’t want values such as Blocking, Sprinting, Parrying to be saved as those values are temporary and they change alot.
I am wondering what is the most easy way to make a data store.
Here the template of the datastore but there is more in my PlayerData
folder which i want to be saved as I explained above.
local ProfileTemplate = {
PrimaryWeapon = "Sword",
PlayerBlessings = "",
PlayerSigns = "",
Kills = 0,
Kunnan = Elements[math.random(1, #Elements)],
Armor = "",
Enchant = "",
Level = 1,
AnimationStyle = "TwoHand",
Race = Races[math.random(1, #Races)],
}
Any help is appreciated!