Use arrow keys to move and press space to swing your sword. Press right arrow, up arrow, and left arrow, in order to turn invincible. (FOREVER)
I can't believe I coded this!!!!!!!!!! part 1: https://scratch.mit.edu/projects/1390326704/ (regular version) I got the idea from @Frostcatz.