local module = {}
module.__index = module
function module.Setup()
local Status = {
Attacking = false
}
setmetatable(Status, module)
return Status
end
function module:M1()
print(self.Attacking)
end
return module
return the part where you set the metatable i think because that’s how I do module stuff
local module = {}
module.__index = module
function module.Setup()
local Status = {
Attacking = false
}
return setmetatable(Status, module)
end
function module:M1()
print(self.Attacking)
end
return module