Click the flag and click the space bar to shoot. Tutorial is inside the script It only takes 2 scripts that you only need less than 10 blocks. Hold down or press the space bar to shoot, and the mouse to aim.
This is a remix. Credits to Commandblock for originally creating this project. I just improve it a little ;) .