How to do character kill character when they got touch

Hi I saw this video that in the video you see how to touch the wall and kill someone now I want that once my player touches someone he will kill someone who is another player not an object how is it possible to do?
i mean when he touch the player start
here is the video: