Spare parts and a couple minutes time, and here is a BB machine gun:
Here is the first round of shots through it:
I had to shake it to keep it firing, so I added a plastic cone I constructed from an empty milk jug. I've got a video of that, but it is kinda dark

I'll have to see if I can enhance it, it is really impressive what a gun under $10 can do!