So, you press space to swing the sword, don't let the enemies reach the other side. There are 9 types of enemies, so you should probably learn what they are and how fast they move, since they are all different.
credit to @Debug-It @Debug-It for everything, I fixed the project as was instructed also I found some other things to be credited: Scratch 3.0 for the death sound effect John Williams for all the background music