This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Our first step of the new Authors Portal is Live! Learn more or click here to check it out!
local MyTable = { a = db.a, b = db.b, c = db.c, }
Quote from deadlyslayaIs there a way to make a table that automatically updates its values? For example: local MyTable = { a = db.a, b = db.b, c = db.c, } where when the addons SavedVariables (db) is changed, the table would update to the new values.
local sv = SavedVariable sv.value = "something" -- SavedVariable.value also becomes "something"
For example:
where when the addons SavedVariables (db) is changed, the table would update to the new values.
Most people just use the SavedVariables variable either directly or by reference.
E.g.
Otherwise, you'd have to use an OnUpdate script because there's no "VARIABLES_CHANGED" event.