does setmetatable() work in local scripts? i cant understand, why this doesnt work
local a = setmetatable({}, {val=5})
print(a.val)```
(gives nil when i expect 5)
i also tried using module script, but that also doesnt help
```lua
local test2 = {}
test2.__index = test2
function test2.new()
return setmetatable({}, {val=5})
end
return test2
local t2 = require(script.Parent.test2)
local obj = t2.new()
print(obj.val)
how to fix it?
** You are now Level 3! **