Teleports and then moves when using W A S D keys

Every time when I use the W A S D keys, it teleports the player around 20 units before it starts moving and then as soon as I release the key, the player teleports back 20 units, it’s kind of hard to explain so I’m gonna post a link to the video.

skip to 20 seconds if you want to see the problem more clearly.

Thanks for your help.

Consider posting a screenshot of the script you’re using, how are we to help if you we do not know how you set it up.