PhysicsService:GetCollisionGroupId
This method returns the ID of the collision group with the specified name. It will throw an error if no group with the given name exists.
Parameters
The name of the collision group being retrieved.
Returns
The ID of the retrieved collision group, or nil if no such group exists.