API:Class/BasePart/CanCollideWith

CanCollideWith

Function of Object Icon.pngBasePart
bool CanCollideWith (
    BasePart part
)
Parameters:
  1. part

Returns: bool
Description: Returns whether the parts can collide with each other or not. This function takes into account the collision groups of the two parts.

This function will error if the specified part is not a BasePart.