This property is server-side only! You should use a Script
instead of a LocalScript
when using it.
CollisionGroupIdProperty of BasePartValue Type: int
Description: The id of the part’s collision group. Parts start off in the Default group (id = 0). While this property can be directly changed, it is recommended to configure the collision group of a part using the name of the group with the SetPartCollisionGroup function.
This value is clamped to the range of collision group ids: 0 <= id < maxCollisionGroups. If this value is set outside of this range it will be automatically changed to the nearest valid value.