Problem Shooting projectiles at moving targets

hi, currently what I have player aimer will “look at” targets, and then on player input shoot projectiles from that aimer, those target will sometime move… which give me problem is that if the object i’m shooting at is moving bit fast, the projectiles will fall behind… which way to go to maybe get the object movement velocity and move the projectiles ahead based on that?

Mathematically you need to calculate the time it will take for your projectile to reach the target. Then calculate how far the target will move in that time. Fire that far in front of the target. Depending on how fast the target is moving relative to the projectile you may need to run a few iterations of the calculation.