Standalone lambdas cannot acessed (bro i just dont know why this happen)

Godot Version

Godot 4.1

Question

Dude, I’m following a tutorial to make a topdown shooter game and the movement part came and I put the following code:

func set_physics_process(delta):
if death:
return
var move_dir = Input.get_vector(“left”, “right”, “down”, “up”)
velocity = move_dir * move_speed
move_and_slide()

and it is giving the error of lambda “standalone cannot be accessed. consider assigning it to a variable”

PLS! HELP!

this doesnt look right
change it to

func _physics_process(delta):