I will tell you how to do it If you want to do the character draining health instead, leave a comment and I'll make the code for that
@Meekaryo for the project which is here: https://scratch.mit.edu/projects/519023930/