Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to module Changed:Connect?

Going off of my last question, how do you detect when a module value changes?

Module script;

local CM  = {}
CM.tableA = {}

function CM.GetTA()
	return tableA
end

return CM

Script;

local CM = require(Module)

CM.tableA.Changed:connect(function() --this doesn't work?
	
end)

Do I have to somehow create my own changed event?

1 answer

✓ Accepted answer

#Nope. Variables do not have a changed event.

However, it is possible to make your own. See this question to have a look.

This discussion is preserved as it was. New answers, comments, and votes are closed.