2 min read

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

NameValueDescription
Unknown0The server shut down for an unknown reason.
RobloxMaintenance1The server shut down for maintenance.
DeveloperShutdown2The experience developer has shut down the server, or functions bound by BindToClose() have been called inside Studio.
DeveloperUpdate3The experience developer has migrated the server to a new place version.
ServerEmpty4The last player has left and the experience is empty.
OutOfMemory5The experience has hit the memory limit for the game server.
Moderation6The server was shut down because the experience or place was taken down for moderation.

Unknown

The server shut down for an unknown reason.

FieldValue
value0

RobloxMaintenance

The server shut down for maintenance.

FieldValue
value1

DeveloperShutdown

The experience developer has shut down the server, or functions bound by BindToClose() have been called inside Studio.

FieldValue
value2

DeveloperUpdate

The experience developer has migrated the server to a new place version.

FieldValue
value3

ServerEmpty

The last player has left and the experience is empty.

FieldValue
value4

OutOfMemory

The experience has hit the memory limit for the game server.

FieldValue
value5

Moderation

The server was shut down because the experience or place was taken down for moderation.

FieldValue
value6