Function of Object Icon.pngBasePart
array<BasePart> GetConnectedParts (
    bool recursive = false
  1. recursive
    • Type: bool
    • Defaults to: false

Returns: array<BasePart>
Description: Returns a table of parts connected to the the object by any kind of rigid joint.

If recursive is true this function will return all of the parts in the assembly rigidly connected to the BasePart.

Rigid Joints

When a joint connects two parts together (Part0 → Part1), a joint is rigid if the physics of Part1 are completely locked down by Part0.
This only applies to the following joint types: