Advertisement
CroClex

ow

Nov 8th, 2019
617
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. cmd.FocusLost:connect(function(enter)
  2. local fe = string.split(cmd.Text, " ", " ", " ", " ")
  3. local exploitmode = string.split(cmd.Text, " ", " ", " ")
  4. local textFormat = string.split(cmd.Text, " ")
  5. if enter then
  6.  
  7.  
  8. if fe[1] == "getreg" and tostring(fe[2]) then
  9. local scr = tostring(fe[2])
  10. local duplicates = ""
  11. local registrySummed = ""
  12. local tabChar = " "
  13. function getTable(tab,numOfExtraTabs)
  14. local tabChar2 = " "
  15. for i=1,numOfExtraTabs,1 do
  16. --print(i)
  17. tabChar2 = tabChar2 .. tabChar
  18. end
  19. for i,v in pairs(tab) do
  20. if type(v) == "table" then
  21. registrySummed = registrySummed .. tabChar2 .. "\n" .. "table: " .. tostring(i) .. "\n"
  22. getTable(v,numOfExtraTabs+1)
  23. else
  24. registrySummed = registrySummed .. tabChar2 .. tostring(i) .. " " .. tostring(v) .. "\n"
  25. end
  26. --print("no table")
  27. end
  28. end
  29. --print(getTable({"hi"},0))
  30. local rog = getreg() or debug.getregistry()
  31. for i,v in next, rog do
  32. if type(v) == 'function' then
  33. if getfenv(v).script then
  34. if getfenv(v).script.Parent then
  35. local fullName = getfenv(v).script:GetFullName()
  36. local scrFullName = scr:GetFullName()
  37. if fullName == scrFullName then
  38. local upVals = debug.getupvalues(v)
  39. for i2,v2 in pairs(upVals) do
  40. if duplicates:find(tostring(v2)) then
  41.  
  42. else
  43. if type(v2) == "table" then
  44. registrySummed = registrySummed .. "\n" .. "table: " .. tostring(i2) .. "\n"
  45. getTable(v2,0)
  46. else
  47. duplicates = duplicates.. tostring(v2)
  48. registrySummed = registrySummed .. tostring(i2) .. " " .. tostring(v2) .. "\n"
  49. end
  50. registrySummed = registrySummed .. "\n"
  51. end
  52. end
  53. --return
  54. end
  55. end
  56. end
  57. end
  58. end
  59. setclipboard(registrySummed)
  60. end
  61.  
  62. end
  63. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement