Made it so Instance:clear actually WORKS

This commit is contained in:
Justin van der Leij 2018-04-29 11:28:36 +02:00
parent fdb7fe4849
commit 404a6b1c6b

View file

@ -214,7 +214,11 @@ end
--- Removes all entities from the Instance --- Removes all entities from the Instance
-- @return self -- @return self
function Instance:clear() function Instance:clear()
self.entities:clear() for i = 1, self.entities.size do
self.entities:get(i):destroy()
end
return self
end end
return setmetatable(Instance, { return setmetatable(Instance, {