There are many deviations of the methods I will give, but they all follow the same concept of how they are done. Camo essentially consists of layers of colors in different patterns. in this case, each layer is applied using masks or stencils to create patterns.
It is also important to make sure paint doesn't get anywhere that could damage the gun. Use painters tape or masking tape to cover these parts if they cannot be removed. You should tape orange tips, joints, and holes that lead to the inside of the gun.