@Megalomaniak
Thank you. I fixed that already and turned it into a function.
Now I'm just having signal problems.
In my Player there is an Area2D in which I create a
"body_entered (PhysicsBody)" and connects to the node "KinecmaticBody2D".
Within the body_entered function, I do:
func _on_Area2D_body_entered(body):
body.test()
And in the enemy scene I create the function "func test ()", inside it I show a test message "print (" damage ")".
But when I run the project and go to test, an error occurs showing that there is no function "test ()" inside the body.
Several tutorials I watched showed the same way and it worked, I don't know what to do.