Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What does the "FindFirstChild" word exactly do?

2 answers

✓ Accepted answer

:FindFirstChild() is a method used for locating a child. This method is usually used to confirm the existence of a child inside a Instance.

It needs to pass a argument through the parenthesis. However, it can also be used optionally for a second parameter that will search through every descendant.

The wiki page for this method is located here.

A example of the method being used is :FindFirstChild("Part") or :FindFirstChild(game.Workspace.Part.Name)

Well, it finds the first child of the specified object. So, if I wanted to find the first object named "Part" in the Workspace, I'd do this:

Part = workspace:FindFirstChild("Part")

This discussion is preserved as it was. New answers, comments, and votes are closed.