If you wanted to convert a table into a string you could do this:
local newstring = ""
for i, v in pairs(table) do
if i > 1 then
newstring = newstring .. ", "
end
newstring = newstring .. tostring(v)
end
print(newstring)
If you wanted to convert the string back into a table you could do this:
local table = string.split(string, ", ")
When I use the variable “table” or “string” you should convert those into your tables and strings with different names.