GetConnectedPartsFunction of BasePart
array<BasePart> GetConnectedParts (
bool recursive = false
- Type: bool
- Defaults to: false
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.