Use the camera as a sensor, throw the ball, you won't receive any points if you missed or blocked.
Please follow Ionvop, sensor credit to Ionvop. I actually completely copied Ionvop's project. http://scratch.mit.edu/projects/20378193/