This thing was inspired by NGPhil; he's made a scene like this but didn't upload it.
But I'm not sure if his version could cycle rounds
I've used the gunpowder script and it works fairly well for this. just press return!
Please rate and comment!
P.S: The round is impulsed by the gas, and the gas piston is moved by the gas too! Just fire and see