Where can I place this code in order to correct player movement?

Using code tags properly