Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How can I find the child in a frame properly among using a table in the parameter?

Asked by 8 years ago

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

0
Or can I do that, is it possible? liteImpulse 47 — 8y
0
codeblock please Async_io 908 — 8y
0
what do you mean by codeblock? liteImpulse 47 — 8y
1
Your code isn't formatted. Edit your post; highlight your code and press the Lua button. A row of ~~~ will apear before and after; this makes your code get syntax highlighting BlueTaslem 18071 — 8y

Answer this question