How to kill/disable moving enemy that is chasing me with raycasts?

Hi @RenatoRak20

don’t expect many answers before you format the code with code tags . Your code is pretty hard to read…