At the end of a level you will sometimes get weapon parts in the loot bags you are given. It is not worth spending Gold on buying these loot bags though as they only yeild a few weapon parts. When you beat the Chapter finale for the first time you will be awarded a once only loot crate that will have plenty of weapon parts inside.