can someone help me make it so that this script only plays once on the frame that the "if" statement becomes "true"??

Code:
//Death Routine
if(hp < 1) {
element ("death").play()
}