Try not to make the ball touch the red part and use the green thing to stop the ball from touching it.
IDK just used the scratch tutorial