How to make a projectile client side detection

use fastcast, it handles all the annoying projectile math for you