Here’s a pretty cool module that I’ve tinkered with, it’s also great to learn from especially regarding the physics/math surrounding projectiles: Making a combat game with ranged weapons? FastCast may be the module for you!
Edit: Whoops meant to reply to OP