I plan on setting up a table like this
local playerStuff = {
gold = 0;
fishCatches = {
};
inventory = {
};
house = 0;
}
will this work saving that to a datastore? Or do i need to JSON it into one big string?
I plan on setting up a table like this
local playerStuff = {
gold = 0;
fishCatches = {
};
inventory = {
};
house = 0;
}
will this work saving that to a datastore? Or do i need to JSON it into one big string?
Roblox handles the JSON encoding and decoding of values into DataStores. That is a legal table to save, yes!
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
ty my good sir!
Do you mind me asking for any examples of a situation where player would want to encode and decode then?
You might want to use JSON encoding and decoding for HttpService.