Small Debris:AddItem() Idea

It’d be cool if you could reset the deletion countdown by calling Debris:AddItem() on the object again.

Use case example:

In a new game I’m making, you can grow the size of “ground fire” by hitting it with fireballs multiple times:

https://gyazo.com/0111551834e5378d6b275cb35fb479fb

I want the Debris countdown on the part that the “ground fire” is in to reset whenever a fireball hits it, but that isn’t possible (correct me if I’m wrong) with the current AddItem.

1 Like

The current state of debris:additem isn’t even reliant anyway, it’s caused an immense amount of issues for me personally and I’d try to avoid it. That said, use coroutines or record the tick() when a fireball is created and remove it when the goaltick = tick()+despawntime.

1 Like