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

how to save Tables with DataStore?

Asked by 6 years ago

so I'm trying to script an item-saving system that adds a value to a table whenever you get a new item, but I've been struggling to figure out how Data Saving works with tables. I thought it might be something like how you save a number value, but that didn't work out. Anyways, if anyone could paste a most basic Table saving script, I would appreciate it. Thanks

0
A table is stored in a JSON string fromat which is all handled by roblox. This means it cannot include functions, Roblox types or mixed tables. You can check that the table will save by using http://wiki.roblox.com/index.php?title=API:Class/HttpService/JSONEncode User#5423 17 — 6y
0
Only dictionaries need the JSONEncode and Decode User#22219 20 — 6y

Answer this question