Returns the first ancestor of the
Instance/Name is equal to the given name.
This function works upwards, meaning it starts at the
Instance/Parent and works up towards the
DataModel. If no matching ancestor is found, it returns nil.
The following code snippet would find the first ancestor of the object named ‘Car’.
local car = object:FindFirstAncestor("Car")
For variants of this function that find ancestors of a specific class, please see