output says:
Workspace.S2:5: attempt to perform arithmetic (mul) on table and number
script analysis says:
W000: (17,7) Type ‘{ @metatable: metatable, d }’ could not be converted into ‘number’
W000: (17,11) Argument count mismatch. Function expects 2 arguments, but 3 are specified
my script:
local d = {g = 2}
local metatable = {
__call = function(a:number,b:number)
return a*b
end,
}
setmetatable(d,metatable)
print(d(2,4))