for i,v in pairs(table) do
if string.find(v, text) then
TextLabel1.Text = v
TextLabel2.Text = v
end
end
For the script above I want to make it so it loops through a table's values, sees if "text" is found in v and then change two text labels. I want the 1st text label's text to be another value from the other text label. For example if from the string.find 3 different values are returned, I want textlabel1's text to be the 1st value, textlabel2 text to be the 2nd etc. But I've tried everything, inserting the values into a table, but nothing worked. Thank you

2 comments
The table "table" is not a data type, just a normal table. You are able to set the variable table to anything else if you wish, or iterate through it as pleased, though it's typically not a good choice of a variable name because it can be confusing.
I don't understand why it's not a data type. Here - https://www.tutorialspoint.com/lua/lua_data_types.htm it's listed as a data type. Yes it can be used like a variable just like "string".