Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
CloseReason
Specifies the reason for the experience server shutdown. This enum value is the first parameter passed to functions bound by BindToClose().
The DeveloperShutdown value must always be passed to functions bound by BindToClose() when they're called in Studio.
Items
| Name | Value | Description |
|---|---|---|
| Unknown | 0 | The server shut down for an unknown reason. |
| RobloxMaintenance | 1 | The server shut down for maintenance. |
| DeveloperShutdown | 2 | The experience developer has shut down the server, or functions bound by BindToClose() have been called inside Studio. |
| DeveloperUpdate | 3 | The experience developer has migrated the server to a new place version. |
| ServerEmpty | 4 | The last player has left and the experience is empty. |
| OutOfMemory | 5 | The experience has hit the memory limit for the game server. |
| Moderation | 6 | The server was shut down because the experience or place was taken down for moderation. |
Unknown
The server shut down for an unknown reason.
| Field | Value |
|---|---|
| value | 0 |
RobloxMaintenance
The server shut down for maintenance.
| Field | Value |
|---|---|
| value | 1 |
DeveloperShutdown
The experience developer has shut down the server, or functions bound by BindToClose() have been called inside Studio.
| Field | Value |
|---|---|
| value | 2 |
DeveloperUpdate
The experience developer has migrated the server to a new place version.
| Field | Value |
|---|---|
| value | 3 |
ServerEmpty
The last player has left and the experience is empty.
| Field | Value |
|---|---|
| value | 4 |
OutOfMemory
The experience has hit the memory limit for the game server.
| Field | Value |
|---|---|
| value | 5 |
Moderation
The server was shut down because the experience or place was taken down for moderation.
| Field | Value |
|---|---|
| value | 6 |