adding score

the score zone is a cheap and easy way to check if the player missed the ball. it's just a boxcollider2D with the is trigger checked (so the ball don't collide with that collider but instead send a trigger you can use on the code) and a script to delete the ball when that happen.
the scoreboard is just a gameobject with a guitext and a script to change that value and respawn the ball.