How do i make my lightsaber kill the enemy

I am trying to make a game on another of my accounts where the lightsaber kills the opposition when the button is pressed, how do i set that up?
Please help

That depends on how you want to set it up, do you have a link to your game?