GetConnectedParts() only ever returns an array of BaseParts, so the return type should be made more specific to prevent incorrect errors like these: