Try it in your browserpreview Source

Wait For Child (Value)Roblox✎

Yields until the child exists, where the child is wanted rather than as a step of its own. Use Wait For Child when the waiting is the point — this one disappears into the line that reads it.

Pending review

Wait For Child (Value)⏳ParentName
  • needs the Roblox engine — its datatypes, its DataModel or its scheduler
  • pure — no execution pins, wire it anywhere
  • latent — it yields, and is never inlined
  • names its result — Result name in the Inspector is the local it binds, and a Declare Local reading that result makes a second one: see Variables and locals

Inputs

  • Parent:Instancemust be wired
  • Name:string= ""

Outputs

  • result:Instance

What it compiles to

luau
print(parent:WaitForChild(""))

Not reviewed yet