TItle is self explanatory, I want to be able to find the first ancestor of something checking both the class name and the name. I need this for a for loop, so I can’t run two checks
Make variable and do if
statement
Example:
local this = Instance:FindFirstChildWhichIsA("Part")
if this.Name == Brick then
-- your code
Like I said, I can’t run two checks.
It has to be under these brackets.
for index,value in pairs(something:FindFirstAncestorWhichIsAwithName("Name","ClassName") do
You just can define a function
But i don’t understand. Why and how you want to loop it