You need to create a piston system to launch the ball, there are no real technical requirements, the video below is just an example.