Yeah coil guns and rail guns. Look em up.
They all suck.
Better off using compressed air or black powder if you're going with the most basic firearms possible.
a compressed air/propane gas gun might actually work though
you just reinvented the railgun, you fucking genious