I'm troubled with the comment 'Issue'. The rest of the code besides finding the arrays in an image button works. I'm not great at this but I gave it my best shot. What I'm trying to let the code do is, get the children of the frame 'accessFrame.T1' and find the arrays in the table 'choseTiles1' upon the children in the frame. Basically search for all the strings that are on the table on the frame, and delete them as an example that way I'll add on more once I achieve this. Can anyone help me?
local accessFrame = script.Parent.Setup.Tiles local Tiles = accessFrame.T1:GetChildren()
local chosTiles1 = {}
local applyAssetToButton = function() -- Issue finding index for i = 1,5 do table.insert(chosTiles1, Tiles[math.random(#Tiles)]) end for i, value in pairs(accessFrame.T1:GetChildren()) do -- Issue local find = value:FindFirstChild(chosTiles1) find:Destroy() end end