This looks like it’s just a perspective thing. The hit position in the video is 1012 studs away, so while it might look like the projectile isn’t heading in the right direction in third person, the direction is actually correct. If you try the same in first person, you will most likely notice that the projectiles are going exactly where you want them to go.
I recommend just using a shorter range for the raycast. 1012 studs is excessive, as you don’t have any targets that far. 5000 would most likely be sufficient.
To further illustrate the situation, here’s a short video showing how the projectile’s angle changes as the distance to the target increases. As you can see, at close range it’s obvious that the projectile is heading in the correct direction, but as the target gets further away, the angle starts becoming more subtle. The projectile is still heading in the right direction, even though it seems like it’s just going directly to the right.
Yea I know that but is it possible to change it so the projectile is headed in a different path based on the prespective of the player so instead of going like it did (arrow on the left) it’d go like the arrow on the right