Added Instance:clear

This commit is contained in:
Justin van der Leij 2018-04-29 11:24:38 +02:00
parent 713956cc6e
commit fdb7fe4849

View file

@ -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,
})