API:Class/BasePart/GetConnectedParts

GetConnectedParts

Function of Object Icon.pngBasePart
array<BasePart> GetConnectedParts (
    bool recursive = false
)
Parameters:
  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 Joint. If recursive is false this function will only return the parts that are directly connected to the BasePart. If recursive is true this function will return all of the parts in the assembly rigidly connected to the BasePart.