Linear Velocity changes depending on FPS

I’m making a dash system that uses linear velocity.

Anytime the player presses Q, a remote is fired, which is picked up by the server.

After, this code runs:

This works fine, but the distance changes depending on if you run 60 FPS or 240 FPS.

How would I fix this?

This has no control over the time that the velocity is held for. Is the dash further on 60fps or 240fps?

You could probably change the task.wait() to task.wait(1/60). Since task.wait() waits exactly one frame, it’ll run about 4 times as often at 240 FPS, unless normalized.
You should probably find a way to incorporate frametimes into this, since low FPS players (namely mobile devices) will still dash slower than those who can hit your target expected framerate.