local RNGcall = 0 memory.registerexec(0x008a9f, 2, function() RNGcall = RNGcall + 1 end) gui.register(function() gui.text(40, 40, ""..RNGcall) end)