I did not make this code. Brewbies made it back in may of last year.
All credit goes to him for figuring out the physics calculations and stuff.
I added Workshop settings to the "initPhysics" rule to allow for easy manipulation of those values.
Press Melee to Shoot a projectile
The script is fairly simple at only 605 elements.