Move the X around with the mouse and don't get hit by the ball. It will be constantly shooting at you from unexpected angles. You can be hit a total of 5 times before you lose.
I have been experimenting a lot but I give credit to my technology teacher for introducing me to Scratch.