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.
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.
if Part:IsA("BasePart") and not Part:IsA("MeshPart") then
-- Is not a MeshPart
elseif Part:IsA("MeshPart") then
-- Is a MeshPart
end
Can you show your usage of :IsA("MeshPart")
? I got it to work just fine here:
:IsA("UnionOperation")
. Unions aren’t automatically MeshParts, they’re set as UnionOperations:A MeshPart is a BasePart AND a MeshPart.
A BasePart is a BasePart.
Use :IsA(“MeshPart”) to be sure. It is infact a thing.
That is exactly what I needed, thank you so much. I was indeed using MeshPart instead of UnionOperation!