The_Newt

[ROBLOX] Newt's Godmode Hack v5.0

Aug 27th, 2014
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.33 KB | None | 0 0
  1. --[[
  2. updated 30-09-2014
  3. this script gives a player infinite health (still has bugs, updates monthly)
  4. use this script on cheat engine 6.3 or higher (NOT LOWER)
  5. programmed by NewtPewt
  6. ]]--
  7.  
  8. showmessage"Programmed by Newt | Edited by silentcowz for The Codebook"
  9. attached = false
  10. timer = createtimer(nil)
  11. memscancount = 0
  12. memscancountmax = 10
  13. processfound = function()
  14.     local scan = creatememscan(true)
  15.     memscan_returnonlyoneresult(scan, true)
  16.     memscan_firstscan(scan, soexactvalue, vtbytearray, rttruncated, "D9 00 8B 46 20 8B 8A 2C 01 00 00 D9 1C 24 8B", nil, 0x00000000, 0xFFFFFFFF, "*w", fsmnotaligned, nil, true, false, false, false)
  17.     local result = memscan_getonlyresult(scan)
  18.     if result == nil then
  19.         memscancount = memscancount + 1
  20.         if not (memscancount > memscancountmax) then
  21.             sleep(100)
  22.             processfound()
  23.         else
  24.             showmessage"Failed to hook to ROBLOX. Please restart Cheat Engine."
  25.         end
  26.     else
  27.         result = string.format("%x", result)
  28.         result = ("0"):rep(8 - #result) .. result
  29.         writebytes(result, 0x90, 0x90)
  30.     end
  31. end
  32. timer_setinterval(timer, 100)
  33. timer_ontimer(timer, function()
  34.     if getprocessiffromprocessname"RobloxPlayerBeta.exe" then
  35.         if not attached then
  36.             attached = true
  37.             openprocess(getprocessidfromprocessname"RobloxPlayerBeta.exe"
  38.             processfound()
  39.         end
  40.     else
  41.         attached = false
  42.     end
  43. end)
Add Comment
Please, Sign In to add comment