Converting string into Color3 value?

print(Color3.fromRGB(table.unpack(string.split(str, ", "))))

I wrote it in one line, but you could make it easier to read

local RGBValues = string.split(str, ", ")

print(Color3.fromRGB(table.unpack(RGBValues)))
1 Like