API:Class/Instance/FindFirstChildWhichIsA


FindFirstChildWhichIsA

Function of Object Icon.pngInstance
Ref<Instance> FindFirstChildWhichIsA (
    string className,
    bool recursive = false
)
Parameters:
  1. className
  2. recursive
    • Type: bool
    • Defaults to: false

Returns: Ref<Instance>
Description: Returns the first child that inherits the class className, or nil if none can be found.