Debris

The Debris service allows you to automatically delete Instance objects after a specified amount of time without blocking the thread.

Function

Description

AddItem(Object: Instance, Time: number): nil

Adds an object to the Debris service, which automatically removes the object after a specified amount of time. Requires 2 arguments: Object (an instance to be added) and Time (a number representing the time in seconds before the object is removed).

Last updated