What are some things you cannot save to a datastore?

For example, lets say I wanted to make a whole table like:

local dataTable = {
	furniture = {
		['Chair'] = true,
		['Couch'] = false,
		['Desk'] = false,
		['TV'] = false
	};
};

Would you be able to save that into a datastore or would you just need to make each object a variable so instead of '['Chair']' it would be 'chair = true'

2 comments

0

They're not variables. But you can do the latter if you want. t.k is sugar for t[k] but the key (k) needs to be a valid identifier for the former to work.

0

And you can't store userdata.