This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder