Player velocity not changing

i made a script that adds 1 to a number which outputs to x velocity but when i test the game the player’s velocity doesnt change it’s just 1 every time

Please leave a link, it will let me know what is wrong.

i fixed it and i have it set so that when it hits the wall it keeps the same speed going the other direction but actually when it hits the wall the speed resets to 0

This is because velocity is not flipped. It stays with the coordinates of the game. To fix this, remove the coding for velocity, including the expression, and replace it with a motor set to 5 or 4.