FindFirstChild help

Is it possible to use FindFirstChild(Instance) instead of FindFirstChild(“Name”). I want to specify which Part it is because it has the same name as other parts in the parent.

You can use :FindFirstChildWhichIsA() which checks if the child is a part, humanoid, model, etc.


     local EnemyHumanoid = OtherPart.Parent:FindFirstChildWhichIsA("Humanoid")

     if EnemyHumanoid then

If you cannot get the child in the first place through its name, then it is not possible to reference it unless you determine what it is through your own conditions.

for i, v in parts:GetChildren() do
if v:IsA("BasePart") and v.Size == then
--do code, where 'v' is the part
break --break the loop once finished, because that one was the correct part.

The code above will determine if the part has a size of 1, 1, 1. This way, you can determine what kind of instance you want depending on its properties regardless of name.