Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
PlayerCharacterDestroyBehavior
Controls whether the engine automatically calls Destroy() on a player's old character when it is replaced and on the Player object when the player leaves. This enum is used by Workspace.PlayerCharacterDestroyBehavior.
Items
| Name | Value | Description |
|---|---|---|
| Default | 0 | Uses the engine-default behavior. |
| Disabled | 1 | Automatic Destroy() calls on character replacement and player removal are disabled. |
| Enabled | 2 | The engine automatically calls Destroy() on old characters when they are replaced (for example, on respawn) and on Player objects when players leave. |
Default
Uses the engine-default behavior.
| Field | Value |
|---|---|
| value | 0 |
Disabled
Automatic Destroy() calls on character replacement and player removal are disabled.
| Field | Value |
|---|---|
| value | 1 |
Enabled
The engine automatically calls Destroy() on old characters when they are replaced (for example, on respawn) and on Player objects when players leave.
| Field | Value |
|---|---|
| value | 2 |