API:Class/BasePart/GetTouchingParts

GetTouchingParts

Function of Object Icon.pngBasePart
array<BasePart> GetTouchingParts ()

Returns: array<BasePart>
Description: Returns a table of all CanCollide true parts that intersect with this part. If the part itself is CanCollide false, then this function will return an empty table UNLESS it has a TouchInterest (AKA: Something is connected to its Touched event). Parts that are adjacent but not intersecting are not considered touching.
These parts are not touching
These parts are touching