Hey guys! I started working on Data storage on my animal game, what i did is i save the player data in a folder called “PlayerData” for every player in the server, and inside that folder i put in some int values to save the currency, that way i can take the data from another script.
But recently i got confused on how can i save table data as i did
I’m making the owned animal table list, and i wanna save it in the PlayerData folder so i can easily check if the player does/doesn’t have an animal
I did find a way but i dont know if its the best/pratical way i can do this, its basically creating another folder called OwnedAnimals, and then doing a in pairs loop on the OwnedAnimals data and create a string object for each animal
Does anyone know a better way? Any help appreciated!
Just a quick question, do you know how i can take away the comma from the start of the string? Since now its like this: “,komodo,tiger” and it creates an empty value from the table