Whenever there is memory leakage, velocity goes off track [SOLVED]

Hello!

My name is b_oomy and I own / create a game called Greenlight Basketball.

In Greenlight Basketball, there is a mechanic to where if you press the E button you shoot the basketball. The way I have it set up is very similar to EgoMooses ‘How to model a projectiles motion’ tutorial, the only problem I have is whenever there is some sort of memory leakage or whenever the server stutters the basketball would go off track and would either miss terribly or almost miss, which shouldn’t be happening.

Any help?

Example

In the example, the basketball goes off track, but still goes in.