Returns the first ancestor of the
Instance/ClassName is equal to the given className.
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.
A common use of this function is finding the
BasePart belongs to. For example:
local model = part:FindFirstAncestorOfClass("Model")
This function is a variant of
Instance/FindFirstAncestor which checks the
Instance/ClassName property rather than
Instance/FindFirstAncestorWhichIsA also exists, using the
Instance/IsA method instead to respect class inheritance.