I don't know how to solve this problem I am trying to make parts that should not collide with specific parts but should collide with other parts for example red block will not collide with a red block but a blue block will collide with a red block, hope someone will help me.
You can use either a NoCollisionConstraint or you could try to use the PhysicsService to create collision groups.