Hit the green flag to see the ball orbit, click see inside to know how to do it, it's not hard. Learn how to do stuff the easy way to things don't get too hard!
This is another way to orbit using sine and cosine. This is harder but a truer orbit. Credit to Ihasfluffycupcakes for original version.