mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 12:24:11 -04:00
Made it so Instance:clear actually WORKS
This commit is contained in:
parent
fdb7fe4849
commit
404a6b1c6b
1 changed files with 5 additions and 1 deletions
|
@ -214,7 +214,11 @@ end
|
|||
--- Removes all entities from the Instance
|
||||
-- @return self
|
||||
function Instance:clear()
|
||||
self.entities:clear()
|
||||
for i = 1, self.entities.size do
|
||||
self.entities:get(i):destroy()
|
||||
end
|
||||
|
||||
return self
|
||||
end
|
||||
|
||||
return setmetatable(Instance, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue