I am trying to get the intellisense/type checking engine to autocomplete when I index the table but it does not autocomplete like I am indexing a model.
I tried different ways of setting / making the metatable but I haven’t found a solution yet
local module = {}
module.New = function()
local TestTable = {}
local Body = Instance.new("Model")
Body.Name = "gd"
TestTable.__index = Body
setmetatable(TestTable,TestTable)
print(TestTable.Name)
return TestTable
end
return module
btw, the code does run fine, I am just wondering how to do the autocomplete stuff.