Hello,
So I was messing around with tables, _index and __newindex and came across __call. Wanted to try it but when I try this…
local Table = {
["Print"] = function(text)
print(text)
end
}
setmetatable(Table, {
__call = function(table, ...)
local Arguments = {...}
print(unpack(Arguments))
end,
})
Table["Print"]("Hello World")
It doesn’t print any arguments. Does anyone know how I’m supposed to use it? Am I using it wrong?