BasePart:GetRootPart() returns Instance type, not BasePart

The issue:
BasePart:GetRootPart() returns the incorrect type, aka Instance, not basepart, it won’t autofill basepart’s properties and can cause a bit of confusion.

In this image, it won’t autofill Position property because it’s not basepart type.
image

Although, this function is supposed to be replaced by AssemblyRootPart property, but it’s still supported and this issue should be fixed.

Expected behavior

The actual behavior:
BasePart:GetRootPart() should return BasePart type

2 Likes