I made this project a long time ago. I wasn't good at coding in Scratch so I stopped making this. Now I am getting better at coding in Scratch so I finished this project :)
The ball now bounces in the right direction when it touches the paddle. Thank you @Robby_Blue for making a tutorial on ball bounce direction calculation.