How to make someone have Invincibility

Im tryin to make a JJK fan game and i just cant get infinity to work pls help its drivin me insane >~<
Please describe your problem more accurately. What are you trying to achieve, what did you do (including your event script code), what did you expect to happen and what happened instead?

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-someone-have-invincibility.182697/