Hello!
I made script that goes like this: (i simplified it for purposes of clear read-through)
local table1 = { part = workspace.part1}
local table2 = {
name = table1.part.Name
}
button.ClickDetector.MouseClick:Connect(function()
print("table2.name")
end)
and made a function that changes table1’s part scope, which looks like this:
table1["part"] = workspace.part2
problem is that when i update table1
, it does update part1
to part2
, but table2
’s value doesn’t change with it, and name
remains same. How do I update table2
with table1
?