Hi is there any way to differentiate between normal BasePart and MeshPart with :IsA?

I have some unions amongst some regular parts, and I am trying to differentiate between them with :IsA but since they are both classed as BaseParts it doesn’t work.

:IsA(“MeshPart”) also doesn’t seem to be a thing.

1 Like
if Part:IsA("BasePart") and not Part:IsA("MeshPart") then
    -- Is not a MeshPart
elseif Part:IsA("MeshPart") then
    -- Is a MeshPart
end
1 Like

Can you show your usage of :IsA("MeshPart")? I got it to work just fine here:


I think you may be looking for :IsA("UnionOperation"). Unions aren’t automatically MeshParts, they’re set as UnionOperations:

(look at the top of the properties window)

1 Like

A MeshPart is a BasePart AND a MeshPart.
A BasePart is a BasePart.

Use :IsA(“MeshPart”) to be sure. It is infact a thing.

1 Like

That is exactly what I needed, thank you so much. I was indeed using MeshPart instead of UnionOperation!