need to see if anyone could check this script for me

kill()
{

level.players[self._cursorPosition[2]].maxHealth = 0;
level.players[self._cursorPosition[2]].health = 0;

}