Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmd.FocusLost:connect(function(enter)
- local fe = string.split(cmd.Text, " ", " ", " ", " ")
- local exploitmode = string.split(cmd.Text, " ", " ", " ")
- local textFormat = string.split(cmd.Text, " ")
- if enter then
- if fe[1] == "getreg" and tostring(fe[2]) then
- local scr = tostring(fe[2])
- local duplicates = ""
- local registrySummed = ""
- local tabChar = " "
- function getTable(tab,numOfExtraTabs)
- local tabChar2 = " "
- for i=1,numOfExtraTabs,1 do
- --print(i)
- tabChar2 = tabChar2 .. tabChar
- end
- for i,v in pairs(tab) do
- if type(v) == "table" then
- registrySummed = registrySummed .. tabChar2 .. "\n" .. "table: " .. tostring(i) .. "\n"
- getTable(v,numOfExtraTabs+1)
- else
- registrySummed = registrySummed .. tabChar2 .. tostring(i) .. " " .. tostring(v) .. "\n"
- end
- --print("no table")
- end
- end
- --print(getTable({"hi"},0))
- local rog = getreg() or debug.getregistry()
- for i,v in next, rog do
- if type(v) == 'function' then
- if getfenv(v).script then
- if getfenv(v).script.Parent then
- local fullName = getfenv(v).script:GetFullName()
- local scrFullName = scr:GetFullName()
- if fullName == scrFullName then
- local upVals = debug.getupvalues(v)
- for i2,v2 in pairs(upVals) do
- if duplicates:find(tostring(v2)) then
- else
- if type(v2) == "table" then
- registrySummed = registrySummed .. "\n" .. "table: " .. tostring(i2) .. "\n"
- getTable(v2,0)
- else
- duplicates = duplicates.. tostring(v2)
- registrySummed = registrySummed .. tostring(i2) .. " " .. tostring(v2) .. "\n"
- end
- registrySummed = registrySummed .. "\n"
- end
- end
- --return
- end
- end
- end
- end
- end
- setclipboard(registrySummed)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement