extends Instance
Class fields
| Field | XML type | Value |
|---|---|---|
Name | string | Debris |
ExplorerOrder | string | -1 |
ExplorerImageIndex | string | 30 |
summary | string | A service that provides utility in cleaning up objects |
Properties
1MaxItems
int| Field | XML type | Value |
|---|---|---|
Name | string | MaxItems |
Deprecated | bool | true |
summary | string | Deprecated. No replacement |
Functions
3AddItem
(item: Instance, lifetime: double = …) → void| Field | XML type | Value |
|---|---|---|
Name | string | AddItem |
summary | string | Adds an Instance into the debris service that will later be destroyed. Second argument 'lifetime' is optional and specifies how long (in seconds) to wait before destroying the item. If no time is specified then the item added will automatically be destroyed in 10 seconds. |
SetLegacyMaxItems
(enabled: bool) → void| Field | XML type | Value |
|---|---|---|
Name | string | SetLegacyMaxItems |
addItem
(item: Instance, lifetime: double = …) → void| Field | XML type | Value |
|---|---|---|
Name | string | addItem |
Deprecated | bool | true |
summary | string | Use AddItem() instead |