Advertisement
TheMadWally

debugrepair

Aug 18th, 2018
16,825
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. assert(PROTOSMASHER_LOADED, 'This script is for ProtoSmasher only!')
  2. printoutput("DebugRepair by wallythemad loaded!", Color3.fromRGB(0, 255, 140))
  3.  
  4. local backup = debug.getupvalues
  5. make_writeable(debug)
  6.  
  7. getgenv().debug.getupvalues = function(f)
  8. if typeof(f) == "function" then
  9. local s, e = pcall(backup, f)
  10. return (typeof(e) == 'table' and e or {})
  11. else
  12. return backup(f + 1)
  13. end
  14. end
  15.  
  16. getgenv().shared.repair = true
  17.  
  18. make_readonly(debug)
  19.  
  20. -- syntax highlighter by josh @v3rmillion.net
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement