Hold space or click to shoot. The variable "TimeUntilNextEnemy" is the time in seconds between each enemy spawning. The score isn't really a score, it's more of a how many enemies you defeated score. Also if you get a score less than 1 or the boss touches you, then the screen goes red and you lose. If an enemy touches you than you lose a score point.
I actually made this in Scratch 2 and transported and fixed some bugs, please tell me if you find some!