✓ Accepted answer
(Assuming this script is the script from the screenshot,)
Pretty much how you had it. All you have to do after that is index v inside of the if statement, as that would be one of the Mines. Your best bet would be to use FindFirstChild, just to be safe.
local mines = script.Parent:GetChildren()
for i,v in pairs(mines) do
if v.Name == "Mine" then
local indicator = v:FindFirstChild('Indicator')
if indicator then
end
end
end
And that's about all there is to it, for getting the indicators. However, based on your question, I'm assuming you want to put the indicators into a new table, populated with indicators. You can do that using table.insert, or by inserting them using bracket notation.
local indicators = {};
local mines = script.Parent:GetChildren()
for i,v in pairs(mines) do
if v.Name == "Mine" then
local indicator = v:FindFirstChild('Indicator')
if indicator then
indicators[#indicators + 1] = indicator;
end
end
end
Hope this helped.