If it doesnt work then restart the program, that should fix it. If it persists, check the code while running to see if something went wrong. You can edit how long the jump is for by adjusting the wait time
This is a very buggy thing, dont copy me, you can remix this (I doubt anyone will) for your infinite runner game.