keblade07

Untitled

May 29th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. Attached = false
  2. Timer = createTimer(nil)
  3. MemScanCount = 0
  4. MemScanCountMax = 10
  5.  
  6. ProcessFound = function()
  7. local scan = createMemScan(true)
  8. memscan_returnOnlyOneResult(scan, true)
  9. 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)
  10. memscan_waitTillDone(scan)
  11.  
  12. local result = memscan_getOnlyResult(scan)
  13.  
  14. if result == nil then
  15. MemScanCount = MemScanCount + 1
  16. if not (MemScanCount > MemScanCountMax) then
  17. sleep(100)
  18. ProcessFound()
  19. else
  20. showMessage"Failed to hook to Roblox. Run the script before opening up Roblox."
  21. end
  22. else
  23. result = string.format("%x", result)
  24. result = ("0"):rep(8-#result) .. result
  25.  
  26. writeBytes(result, 0x90, 0x90)
  27. end
  28. end
  29.  
  30. timer_setInterval(Timer, 100)
  31. timer_onTimer(Timer, function()
  32. if getProcessIDFromProcessName"RobloxPlayerBeta.exe" then
  33. if not Attached then
  34. Attached = true
  35. openProcess(getProcessIDFromProcessName"RobloxPlayerBeta.exe")
  36. ProcessFound()
  37. end
  38. else
  39. Attached = false
  40. end
  41. end)
Advertisement
Add Comment
Please, Sign In to add comment