This has no script. Is this what you need?
I’m printing velocity every frame in the middle. If the velocity changed due to a massive framerate drop or inadequate float precision (or UE4 + PhysX shenanigans), you could always clamp the vector to ensure it stays as it should and enforce linear velocity then.