API:Class/Instance/FindFirstAncestorWhichIsA


FindFirstAncestorWhichIsA

Function of Object Icon.pngInstance
Ref<Instance> FindFirstAncestorWhichIsA (
    string className
)
Parameters:
  1. className

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