Skip to content

Instantly share code, notes, and snippets.

function module.Load(data)
--convert string to table
print(data)
local newData = http:JSONDecode(data) --convert json string to table
local function traverseTable(tab) --traverse table and hunt for C3(n,n,n) strings to convert to color3
for i,v in pairs(tab) do
if type(v) == "table" then
traverseTable(v)
elseif type(v) == "string" and v:match("^C3%(.+,.+,.+%)") then
--is a color3