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

Can you save tables with Data Store?

Asked by 9 years ago

Can you store tables with Data Store?

1 answer

Log in to vote
1
Answered by
Unclear 1776 Moderation Voter
9 years ago

According to the documentation on Data store, yes you can.

Saves arbitrary lua tables, besides strings, booleans and numbers. Instances cannot be saved directly though.

However, it should be noted that there is an odd limitation related to storing tables in Data store.

You cannot use a mixed list style (which is essentially where you are using both array and dictionary table styles in the same table). An example of this would be the table below...

local t = {1, b = 2} -- note how the first raw element "1" is in array style, while the second raw element "b = 2" is in dictionary style.
0
Thank you :D CodeSponge 125 — 9y
Ad

Answer this question