API:Class/Instance/FindFirstAncestorOfClass


FindFirstAncestorOfClass

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

Returns: Ref<Instance>
Description: Returns the first ancestor whose ClassName is equal to className, or nil if none can be found.