I want to tell from a script when a ModuleScript calls its own function within the table returned, except I'm not entirely sure how.
I'm currently trying to add a metatable to the table from the script calling the ModuleScript but it doesn't seem to be saying the table is being indexed at all
tableFromModuleScript = setmetatable(tableFromModuleScript, {
__index = function(self, index)
print(index .. " is being indexed")
if self[index] == self.FunctionBeingCalled then
print("Index is the function")
end
end
})
