So I have this code:
local SquareTable = {"Square1", "Square2", "Square3", "Square4", "Square5", "Square6", "Square7", "Square8", "Square9", "Square10", "Square11", "Square12", "Square13", "Square14", "Square15"}
for i,v in pairs(game.ServerStorage:WaitForChild("Parts"):WaitForChild("Squares"):GetChildren()) do
if v.Name == table.concat(SquareTable) then
v:Clone().Parent = game.Workspace
end
end
I'm checking to see in the ServerStorage if the part's name are equal to the Square name.
There are 15 parts in the Squares folder inside of the server storage, and they are all named Square1, Square2, etc. As it follows to Square15. But I'm placing those names in a table and then I'm concating it to get all the values of the table and to see if all the parts in the Squares folder are equal to the SquareTable. However, this does not work. I get no error, i get nothing. So what's the solution? What am I doing wrong?

4 comments
I'm just trying to check if the folder that contains all the parts, their names are equal to the table. So if they are equal to the table then I want to clone them into the workspace
I edited my answer! This should help you a bit more. Accepting my answer would help a lot, thanks!
http://prntscr.com/kvjuaf I get this error, it's on the line where you put "if table.concat(SquareTable) == table.concat(Squares) then"
maybe use a wait for you use the if statement