Judging from your most recent reply, I'm guessing that you have something along the lines of this:
lua Code:
defaults = {
x = someNumber,
y = someOtherNumber
}
settings = defaults
control:ClearAnchors()
control:SetAnchor(TOPLEFT, GuiRoot, TOPLEFT, defaults.x, defaults.y)
--control is moved?
settings.x = newNumber
settings.y = newOtherNumber
control:ClearAnchors()
control:SetAnchor(TOPLEFT, GuiRoot, TOPLEFT, defaults.x, defaults.y)
Can you see the problem? Tables are not copied upon assignment, they are referenced.
So "settings = defaults" and then "settings.x = someNewNumber" in fact changes the value of your "defaults.x".