I just want to do this more for cosmetic purposes but is there a way to get “how” the metamethod was fired? For example, let’s say I have the following
local replicatedStorage = game:GetService('ReplicatedStorage') local myModule = require(replicatedStorage.MyModule) local var1 = myModule.var1 local var2 = myModule.var2() local var3 = myModule:var3() -- or myModule.asd(myModule)
Now in the module, let’s say all of these don’t exist. Is there a way to discern how it was called?
var1 would be variable or index table
var2 would be function
And for the second part of the question,
var3 would be function again but you’d have to check the first passed variable in the function which is why I would want to be able to get the arguments passed.