Monster that follows the player and when touched it resets the scene

Godot Version

Please help me. I am trying to make a monster that follows the player and when touched it resets the scene/game (or does something else)

Question

The code isn’t working for me but logically should. Can someone explain and give the the right code?

Can you show us the code? We can’t help you without seeing it.