This is quite popular question! You may have a look here - Create a simple machine gun - Questions - Babylon.js