Each weapon can be customized with certain attachments. These attachments come in different categories. These categories are:

Each attachment has a level and rarity associated with it. The higher the level, the better stats the attachment gives the gun. Same with the rarity. But the level of the attachment does not need to be the same or below the level of the gun. The level of the player is the highest level that the attachments can be.