Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What is a list of userdata able to be stored in a datastore?

Asked by 5 years ago

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'

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. User#24403 69 — 5y
0
And you can't store userdata. User#24403 69 — 5y

Answer this question