local T = {}
local function New(Obj,N)
T[#T+1] = {Obj,tick(),N}
end
while true do
for i = #T,1,-1 do
if tick() - T[i][2] >= T[i][3] then
T[1]:Destroy(); table.remove(T,i)
end
end
wait()
end
I feel like the debris already has something builtin so the 2nd method seems a bit pointless but I do not know for sure
I see literally no point to doing the second method.
Debris doesn’t create a new thread, and doesn’t yield the current thread. nor would it throw an error if that object is already destroyed.
Alright I have heard though that if debris gets overflooded they’ll start deleting things even if it didn’t pass the specific timestamp do you know if this is an accurate statement?
(I do not have any source or proof its merely just what I heard)
Not accurate at all. Developers, myself included, use debris to handle bullet holes and such, can confirm they stay regardless of how many additions to debris there are.