Hitscan Gun System struggles with moving targets

In the video below, sorry for the bad quality, I am shooting an example target dummy to test out the different types of my hitscan guns, however it really struggles with moving targets. It creates a raycast and detects any hits, however, I don’t know whether its delay or something is wrong with the script, but it really has a hard time with moving targets. I tested this out with some friends to play it out erlier, and it was really hard to shoot them. Any solutions, I can provide code if needed.

Video:

1 Like