How do I make an object shoot out a ball?

I have been trying to figure this out but can’t seem to come to a conclusion.

Check out the first person template that comes with UE4. It has a gun that fires a ball, you might want to check the blueprint for that.