Yuari
Documentation
Docs/Instances/FindFirstChild

FindFirstChild

First matching child, or nil.

Syntax

:FindFirstChild(name: string) -> any

Parameters

ParameterTypeDescription
namestringThe name used for the lookup or new object.

Returns

TypeDescription
anyThe value produced by the call.

Description

FindFirstChild is part of the Instances library. Instances are live proxies backed by game memory. Property reads and method calls go through Roblox's own objects.

The call is read-only: it resolves the current value when invoked and does not change the underlying state.

The aliases :FindFirstChildOfClass(class), :FindFirstChildWhichIsA(class) resolve to the same implementation.

Example

print(workspace:FindFirstChild("Map"))
print(workspace:FindFirstChildOfClass("Model"))
print(workspace:FindFirstChildWhichIsA("BasePart"))

Notes

  • Aliases: :FindFirstChildOfClass(class), :FindFirstChildWhichIsA(class).
  • Instance proxies are backed by live game memory.