Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can i save tables to a datastore like so?

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?

1 answer

✓ Accepted answer

Roblox handles the JSON encoding and decoding of values into DataStores. That is a legal table to save, yes!

3 comments

0

ty my good sir!

0

Do you mind me asking for any examples of a situation where player would want to encode and decode then?

0

You might want to use JSON encoding and decoding for HttpService.

This discussion is preserved as it was. New answers, comments, and votes are closed.