Needing Help with script

Godot Version

4.7.1

Question

it is giving me 4 errors this is my first time trying to use godot, unexpected else in body

mixed use of tabs and spaces for indentation

unexpected indent in class body

expected end of file

If you share code, please wrap it inside three backticks or replace the code in the next block:

else:
velocity = Vector2.ZERO

You might want to read and follow the guidelines for posting in the help section