R3H4CK3R

Untitled

Sep 21st, 2020 (edited)
1,222
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local function dump(o)
  2.    if type(o) == 'table' then
  3.       local s = '\n{\n'
  4.       for k,v in pairs(o) do
  5.          if type(k) ~= 'number' then k = '"'..k..'"' end
  6.          s = s .. '\t[ '..k..' ] = ' .. dump(v) .. ',\n'
  7.       end
  8.       return s .. '}'
  9.    else
  10.       return tostring(o)
  11.    end
  12. end
  13.  
  14. local cmp = component.list()
  15. print(dump(cmp))
RAW Paste Data