It looks like you're new here. If you want to get involved, click one of these buttons!
I think you could add a couple of improvements, not too complex when coding. For example that the script is not working if you're dead, it would be a global if it checks if the character is dead or not, and if it is still the code.
Another thing would be a selector within the script, in which you can choose to remove the sound and / or put in a message for longer or repeat it X times.