Skip to content

PlayerObjectEditEndedPayload

type PlayerObjectEditEndedPayload = Readonly<{
player: PlayerSnapshot;
objectId: number;
reason: "saved" | "cancelled" | "denied" | "object-edit-unavailable" | "object-changed" |
"timeout" | "script-cancelled" | "disconnected" | "invalid-transform";
}>;
Name Type Description
player PlayerSnapshot Who had the editor open or was waiting for it to open.
objectId number The script object’s ID.
reason string saved when accepted, cancelled by the player, script-cancelled by the gamemode, denied by policy, timeout while opening, object-edit-unavailable when the editor or target became unavailable (including when the player died or opened the pause menu or chat), object-changed when the shared transform changed, disconnected when the player left, or invalid-transform when the draft was out of bounds.