Very FindFirstChild

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

a function works how findfirstchild but include very childs options

  1. What is the issue? Include screenshots / videos if possible!

i no have idea how to make it ¯_(ツ)_/¯

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

yea

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!


function VeryFindFirstChild(Part,ChildsTable)
      -- makes the misterious things
end

image


print(VeryFindFirstChild(workspace.Part,{"1","2"})) -- prints {1,2}

print(VeryFindFirstChild(workspace.Part,{"1","abc"})) -- prints {1,nil}

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

what are you trying to do? Its unclear

Just use the second parameter in the FindFirstChild method.
Understood the post incorrectly.


Create a function that iterates through an array sent as an argument and calls FindFirstChild on the parent Instance. Then insert the result into another table and return it.

local function FindEveryChild(parent: Instance, children: {string})
   local foundChildren = {} --table to hold the found children

   --... loop through the 'children' parameter

   return foundChildren --return the table
end
1 Like