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

Error whilst saving data?

I asked this same question...twice! And nobody answered it! CAN ANYBODY ANSWER THIS ONE?!!? I want to save a bunch of tables in one table. But, it errors and says "cant save array. datastore accepts utf-8 characters". Here is an example of what the data i want to save looks like:


{{Position = {X=1,Y=1,Z=1}, Color = BrickColor.Red(), Material = "Neon"},{Position = {X=1,Y=1,Z=1}, Color = BrickColor.Red(), Material = "Neon"},{Position = {X=1,Y=1,Z=1}, Color = BrickColor.Red(), Material = "Neon"},{Position = {X=1,Y=1,Z=1}, Color = BrickColor.Red(), Material = "Neon"}}

Basically. HELP MEEE plz

1 answer

DataStores don't accept arrays. They only accept utf-8 characters , which is, for example:

0129u903k09ds213']\A]S'SD;CAKP1238OIJHGF6D5Ujdsaad0990i2130\s.d[sd/qpe[

That's why it's giving you an error, you'll have to find a different way to do what you're trying to do. Hope this helps!

6 comments

0

can you tell me "a different way"?

0

This is not a request site, although you could make a table something like this {Material = "Neon", BrickColor = "Red", X = 1, Y = 1, Z = 1}

0

still doesnt work. datastores dont accept dictionaries either

0

Datastores should accept tables iirc, either way you'd still need to find another way to do whatever you wanna do

0

PLEASE HELP ME

0

You can make a table, then use JSONEncode to encode the table to json, then save that. When you load the data, you can use JSONDecode to decode it back to a table. These are in HTTPService

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