This is the same as other godmodes, but this one, by using the Steam ROTMG Client, you will extremely rarely take damage, so its almost complete godmode, but you will be disconnected if you take too much godmoded hits, so try to dodge.
1. Download and open Cheat Engine 6.1
2. Open the ROTMG Steam Client but don't get in game
3. Press and Put Realm of the Mad God.exe
4. In the Value Type press Array of Bytes
5. Then type 4f b5 32 02 in the Hex Box
6. Press First Scan
7. Press two times in the Found Things.
8. Below double click 4f b5 32 02 in and put 4f 02 02 02
9. Exit Cheat Engine
10. Get ingame in ROTMG and youre done!