Typically I see these with an existing gun, but this is one where the entire build is from scratch.
https://www.instructables.com/id/Turret-Gun/