Hello all, I’m trying to learn about datastores so I can start saving more stuff than just simple leaderstats, but i’m going around looking at all the ways to store data and I’m confused because some people have to go extremely in depth like using httpservice and stuff like that which im unfamiliar with, and then some people are able to just save a table straight up, and by doing some of my own testing I am just fully confused how saving tables works or if its even possible or not, just a general idea would be helpful thank you!
It works exactly like a variable, just a different way of storing/retrieving it. You save/get it with datastores just like you would with a number, like player cash. One important thing to note is that you cannot save a table with an Instance from the game in it.
HTTPService and JSONEncode/Decode simply turns the table into/out-of a JSON table, which is basically a table but in another coding language.
2 Likes
what are the pros and cons of the json table, or in other words what even is the need for it
I don’t use it much, but it believe it is used for sending data when making web API calls with HTTP service.
1 Like