In my script i am trying to sort animations into their intended tables. For it to work, i use the function string.find, to compare the tables string name and the animation name(i don't know if string.find will work yet, but that's not my current issue.) Is there a way to get the string name of a table without adding a child called "Name" to the table?
SOLUTION: Tables can't be named, so I just added a string called "Name" into the table.
local function Order(tabfolder,folder) for tabi,tabv in pairs(tabfolder) do for i,v in pairs(folder) do local anim = string.find(tabv.Name,v.Name) if anim then print("Instance "..v.Name.."is headed to "..tabv.Name) table.insert(v,tabv) end end end end