My code for the player stopped working

Godot Version

Godot 4.1.1

Question

I started with godot some time ago and last year started to make a full game for the public. I am not very good with making very clean code but it was clean enought for every thing to work until now. It started when I finished the final touches with the final boss and the final cutscene. After that, the gravity of my player started to act weird.

The no gravity is for a part in the final boss were you are “falling”. The gravity flip is for flipping the gravity of the player at some point. I set the base gravity to 500 and making sure that the velocity.y does not pass 200. This way was working perfectly before I finished the final boss and the endcutscene, but after that the player had a heavier gravity and the velocity.y did not stop at 200. And the weird part is that the enemies that have the same code work just perfectly fine. I do not know what is the problem. I was thinking that maybe I added too much stuff to the game, but I think it does not make sense. I need help.

Try indenting your 80th and 81st lines with 1 more tab.
Also, change the 77th line to just else:

Thanks for the coding advise, but I do not think that thats the problem. I will try it tho, just explain me the indenting the 80th and 81st lines.

Thank you

OMG, I am so dumb, thank you for pointing it out. I did not see that. Thank you very much, it was driving me crazy, thank you.