RetroStudio Documentation
Code BlocksObjectsGuides
  • Index
  • Code Blocks
    • Code Block Index
    • Actions
      • General
        • Set Object Property
        • Get Object Property
        • Tween Object Property
        • Create Object
        • Destroy Object
        • Clone Object
        • Is A
        • Is Touching
        • Get Touching Parts
        • Get Connected Parts
      • Hierarchy
        • Find First Child
        • Find First Child Which IsA
        • Find First Child Of Class
        • Wait For Child
        • Get Random Child
        • Get Children
        • Get Descendants
        • Is Descendant Of
        • Is Ancestor Of
      • Physics
        • Make Joints
        • Break Joints
        • Set Part Network Owner
        • Find Part On Ray
        • Set Part Physical Properties
        • Get Part Physical Properties
        • Fire Rocket Propulsion
        • Abort Rocket Propulsion
      • Models
        • Move Model To
        • Set Model PrimaryPart CFrame
        • Get Model Bounding Box
      • Sounds
        • Play Sound
        • Stop Sound
        • Pause Sound
        • Resume Sound
      • Leaderstats
        • Create Leaderstat
        • Get Leaderstat
    • Input
      • Mouse
        • Click Detector Interaction
        • Get Mouse Target Part
        • Get Mouse Target Surface
        • Get Mouse Position 2D
        • Get Mouse Position 3D
        • Left Mouse Down
        • Left Mouse Up
        • Right Mouse Down
        • Right Mouse Up
        • Set Mouse Target Filter
      • Keyboard
        • Key Down
        • Key Up
      • GUI
        • GUI Mouse Enter
        • GUI Mouse Leave
        • GUI Mouse Moved
        • GUI Mouse Wheel Up
        • GUI Mouse Wheel Down
      • GUI Buttons
        • GUI Left Click
        • GUI Left Mouse Down
        • GUI Left Mouse Up
        • GUI Right Click
        • GUI Right Mouse Down
        • GUI Right Mouse Up
      • Text Box
        • Text Box Focused
        • Text Box Focus Lost
    • Miscellaneous
      • Variables
        • Set Variable
        • Print
        • Warn
        • If
        • Type Of
      • Loops
        • For Loop
        • While Loop
        • Loop Through Table
        • Loop Through Children
        • Loop Through Descendants
        • Break Loop
        • Continue Loop
      • Functions
        • Define Function
        • Function Return
        • Execute Function
      • Run
        • Wait
        • Do Not Run
        • Execute Block
        • Render Stepped
      • Run
  • Objects
    • Objects Index
    • Instances
      • Accoutrement
      • Animation
      • Backpack
      • BillboardGui
      • BindableEvent
      • BindableFunction
      • BlockMesh
      • BodyAngularVelocity
      • BodyColors
      • BodyForce
      • BodyGyro
      • BodyPosition
      • BodyThrust
      • BoolValue
      • BrickColorValue
      • Decal
      • Dialog
      • Explosion
      • Fire
      • Smoke
      • SpawnLocation
      • SpecialMesh
      • Team
      • Texture
      • Tool
      • Truss
      • Weld
    • Services
      • Workspace
      • Players
      • Lighting
      • StarterGui
      • StarterPack
      • Debris
      • Teams
      • Soundscape
  • Guides
    • Guides Index
    • Simple Guides
      • Intro to Loops
      • How to make a Debounce Script
Powered by GitBook
On this page
  • Description
  • Inputs
  • Outputs
Edit on GitHub
  1. Code Blocks
  2. Actions
  3. Hierarchy

Find First Child

Description

Runs the connected block only if the given object has a child with the given name.

Available to

Inputs

Parent (Object)

You give the path to an object.

workspace

ChildName (String)

You give the block the name of a object.

Tree

Recursive (Bool)

Whether or not the search should be conducted recursively.

false

Outputs

Result (Object)

You give the block the variable you want the found object to be saved to.

TreeModel
PreviousHierarchyNextFind First Child Which IsA

Last updated 1 year ago