diff --git a/lib/instance.lua b/lib/instance.lua index 869afee..0e999af 100644 --- a/lib/instance.lua +++ b/lib/instance.lua @@ -211,6 +211,12 @@ function Instance:emit(eventName, ...) return self end +--- Removes all entities from the Instance +-- @return self +function Instance:clear() + self.entities:clear() +end + return setmetatable(Instance, { __call = function(_, ...) return Instance.new(...) end, })