Advertisement
roger109z

Untitled

Jul 25th, 2017
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. local function copyTable(...)
  2. tArgs={...}
  3. local B={}
  4. for _,A in pairs(tArgs) do
  5. if A and type(A)=="table" then
  6. for i,k in pairs(A) do
  7. if type(k)=="table" and k ~= A then B[i]=copyTable( B[i] or {},k)
  8. elseif k ~= A then B[i]=k end
  9. end
  10. end
  11. end
  12. return B
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement