Facebook
From Putrid Hornbill, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 210
  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