Hello everyone, it’s been a while since I’ve had to make a scripting support topic but here we are. Today, I’m having trouble with cycle table references.
Example:
local dictionary = {
a = {
b = {
}
}
}
dictionary.a.b.a = dictionary.a
print(dictionary)
Running this code gives us an output that looks like this.
▼ {
["a"] = ▼ {
["b"] = ▼ {
["a"] = "*** cycle table reference detected ***"
}
}
}
I want to be able to copy over the a and b and put it into b without it looping like this. (What I want below )
["a"] = ▼ {
["b"] = ▼ {
["a"] = ▼ {
["b"] = {}
}
}
}
}
I’ve been trying for hours and any support is appreciated! Thanks, Joosan.