Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
DraftStatusCode
State of a script draft from GetDraftStatus and from CommitStatusChanged / UpdateStatusChanged. See individual items for in-sync, outdated, committed, and removed-script outcomes.
Items
| Name | Value | Description |
|---|---|---|
| OK | 0 | The draft is in sync with the server's base version and has no blocking conflicts. |
| DraftOutdated | 1 | The server version of the script has advanced beyond the base version used when the draft was created, so the draft must be updated before it can be committed. |
| ScriptRemoved | 2 | The script referenced by the draft no longer exists in the data model. |
| DraftCommitted | 3 | The draft was successfully committed to the server and removed from the local sandbox. |
OK
The draft is in sync with the server's base version and has no blocking conflicts.
| Field | Value |
|---|---|
| value | 0 |
DraftOutdated
The server version of the script has advanced beyond the base version used when the draft was created, so the draft must be updated before it can be committed.
| Field | Value |
|---|---|
| value | 1 |
ScriptRemoved
The script referenced by the draft no longer exists in the data model.
| Field | Value |
|---|---|
| value | 2 |
DraftCommitted
The draft was successfully committed to the server and removed from the local sandbox.
| Field | Value |
|---|---|
| value | 3 |