The ship will follow your mouse and shoot bullets endlessly, when you upgrade your ship will shoot faster. Check out version 2 https://scratch.mit.edu/projects/836152975
I used my own code that I thought of myself. I'm currently working on version 2 even though I just released this, I originally made this way before I'm sharing it.