Using electric current to magnetize the coils consecutively. When the coils are magnitize, magnetic force will be induced inside the coils and exert magnetic force on projectiles to shoot it out
Schematics
Increase voltage for higher performance (below 55V-IRFZ44N limit)