local old = clonefunction(unpack) local old_append = clonefunction(appendfile) local output = "yes.txt" writefile(output, "") local function appendfile(filename, content) if not isfile(filename) then writefile(filename, tostring(content)) end return old_append(filename, content) end local function format(tab, seen) if type(tab) ~= "table" then return tostring(tab) end seen = seen or {} if seen[tab] then return "''" end seen[tab] = true local result = "{" local first = true for index, value in pairs(tab) do local k = tostring(index) local v if type(value) == "table" then v = format(value, seen) else v = tostring(value) end if first then result ..= string.format("\n'Index: %s' | 'Value: %s', ", k, v) first = false else result ..= string.format("\n'Index: %s' | 'Value: %s', ", k, v) end end if result == "{" then seen[tab] = nil return "{\n},\n" end result = result:sub(1, -3) .. "\n},\n" seen[tab] = nil return result end local function foreach(tab) if type(tab) ~= "table" then return end for index, value in pairs(tab) do if type(value) == "table" then local ok, out = pcall(function() return format(value) end) if ok and out then appendfile(output, out .. "\n") end else appendfile(output, string.format("{Index: %s | Value: %s\n }", tostring(index), tostring(value))) end end end function unpack(...) local first = select(1, ...) if typeof(first) == "table" then pcall(function() foreach(first) end) end return old(...) end; -- script u wanna dump here