[SOLVED] How would i go about using :JSONDecode() to save intances into a plugin and use them in another project?

  1. i’ve tried google, that didn’t work

  2. i’ve tried implementing it myself, but i don’t know how to get the instances from the :JSONDecode() table.

I have another idea you could do this,

so I think you can save custom settings in a table to a plugin so it shows in every game, you could try using instance:Clone() and saving it to the table or something if not, then try chat GBT see if that can help/

Thanks for the suggestion, i will try it later.

Alright, let me know how you get on!

Another suggestion, if you know of a plugin that can already do this then try take a look at their source code and see how they did it.

unfortunately, i dont know of a plugin that can do this at the time of writing.

JSON encoded tables can only store values that are numbers, booleans*, strings, or tables. If you try to store a table which contains any value other than that, it’ll be null.

Reference: JSONEncode not properly encoding a dictionary

thanks for letting me know, i have another method in mind now.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.