Your paddle follows you mousepointer make sure the ball does not touch the red line you can do this by stopping it with the paddle. Have a great time!!!
I am sorry but i copied it, i made it when i was 10 when i was bad in scratch so i would learn more about scratch. this is the video i copied: https://youtu.be/BlmBDrnhd2I