Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
PlayerExitReason
Second argument in Players.PlayerRemoving. Helps identify whether a kick was caused by the Roblox platform or the Creator.
Items
| Name | Value | Description |
|---|---|---|
| Unknown | 0 | Catch-all for all other disconnect reasons. |
| PlatformKick | 1 | User was kicked by Roblox systems, such as being blocked while in a Private Server. |
| CreatorKick | 2 | Creator called Player:Kick() |
Unknown
Catch-all for all other disconnect reasons.
| Field | Value |
|---|---|
| value | 0 |
PlatformKick
User was kicked by Roblox systems, such as being blocked while in a Private Server.
| Field | Value |
|---|---|
| value | 1 |
CreatorKick
Creator called Player:Kick()
| Field | Value |
|---|---|
| value | 2 |