What is the main difference with "Part" and "BasePart"?

Part classname is ofc “Part” but is also acceptable when its named “BasePart”
if i:IsA("Part") and if i:IsA("BasePart") what does it differentiate between the two?

6 Likes

Part inherits from BasePart. BasePart is the abstract class for Roblox primitives.

You can use IsA(“BasePart”) if you also want to catch other parts that inherit from BasePart, such as MeshParts, while doing something involving parts (for example, welding morphs). IsA checks instance inheritance, while checking the ClassName property only checks if there’s a direct match.

21 Likes

BasePart includes meshparts and such whereas parts only include normal parts.

10 Likes