For some time I've been making a customizer script for my game
I've been working with JSON to save my tables, but it seems unable to encode or decode Color Values, and when the color values are in a table, they simply set to nil.
I'm using Data Persistence, since players may update and load their data many times in a session.
Does anyone know a work around?
Forgot to mention, I'm saving multiple colors at a time, stored in a table.
Data Saving of either any doesn't play kindly with ROBLOX userdata.
The easiest way to save a Color3 is to convert it to a table:
local Color3Tab = {Color3.r, Color3.g, Color3.b}
Which will then easily save.
To get the Color3 back:
local Color3 = Color3.new(Color3Tab[1], Color3Tab[2], Color3Tab[3])