Barrel attachments go on the front, stocks go on the back, and others go on the bottom and top tactical rails.
look at soccersmiths projects such as create a nerf blaster.