JacobRoblox

Untitled

May 13th, 2020
30,572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. -- This script was generated by Hydroxide
  2.  
  3. local oh_get_gc = getgc or false
  4. local oh_is_x_closure = is_synapse_function or issentinelclosure or is_protosmasher_closure or is_sirhurt_closure or checkclosure or false
  5. local oh_get_info = debug.getinfo or getinfo or false
  6. local oh_set_upvalue = debug.setupvalue or setupvalue or setupval or false
  7.  
  8. if not oh_get_gc and not oh_is_x_closure and not oh_get_info and not oh_set_upvalue then
  9. warn("Your exploit does not support this script")
  10. return
  11. end
  12.  
  13. local oh_find_function = function(name)
  14. for i,v in pairs(oh_get_gc()) do
  15. if type(v) == "function" and not oh_is_x_closure(v) then
  16. if oh_get_info(v).name == name then
  17. return v
  18. end
  19. end
  20. end
  21. end
  22.  
  23. local oh_EndRun = oh_find_function("EndRun")
  24. local oh_index = 15
  25. local oh_new_value = 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -- replace this with the value that you want to set the upvalue to
  26.  
  27. oh_set_upvalue(oh_EndRun, oh_index, oh_new_value)
  28.  
  29. -- WARNING: THIS SCRIPT MAY NOT WORK, DO NOT RELY ON THE UPVALUE SCANNER FOR 100% FUNCTIONAL SCRIPTS!
  30. -- "scout_closure" may not find the correct function if there are multiple functions with the same name
Add Comment
Please, Sign In to add comment