Press the flag.
-----HOW TO USE-----
Create an 'if' loop saying if '[player hp variable] = 0 or [player hp variable] < 0'. Drag 'broadcast ded' and 'stop other scripts in this sprite' into the loop.
Notes & Credits
@toopgobo for the text engine.
Toby Fox for Undertale and the music.
If you want to use this, please give credit to @toopgobo
They did basically all of the work