Deep copying tables with cyclic references

How do I detect ignore cyclic table references from tables that I’m trying to clone? The function I’m using right now (from the Roblox documentation) does not work because of stack overflow.

Keep a temporary list of all nodes that you’ve copied already. If the item you’re about to copy matches one of the items in the list, link it to the item in the list instead.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.