I was trying to make an upside down level and my player cannot jump while walking this is the script

i changed the gravity to - and tried changing the jumpforce to -
it didnt work
he can jump while he isnt moving