Open Asterune
HistoryService

HistoryService

Records and restores editing history.

Service
game:GetService("HistoryService")
Inherits
Instance
Replication
Never

Behavior

HistoryService records and restores editing history.

Summary

Members9
Properties4
  • CanRedo: boolean = falseparallel readread only

    Whether an undone editing operation can be redone.

  • CanUndo: boolean = falseparallel readread only

    Whether an editing operation can be undone.

  • RedoLabel: string? = nilparallel readread only

    The label of the next operation that would be redone.

  • UndoLabel: string? = nilparallel readread only

    The label of the next operation that would be undone.

Methods3
Events2
  • Redone: RBXScriptSignalparallel read

    Fires after an editing operation is redone.

  • Undone: RBXScriptSignalparallel read

    Fires after an editing operation is undone.

Properties

CanRedo

HistoryService.CanRedo: boolean = false

Whether an undone editing operation can be redone.

CanUndo

HistoryService.CanUndo: boolean = false

Whether an editing operation can be undone.

RedoLabel

HistoryService.RedoLabel: string? = nil

The label of the next operation that would be redone.

UndoLabel

HistoryService.UndoLabel: string? = nil

The label of the next operation that would be undone.

Methods

GetExecutionGroup

HistoryService:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

Redo

HistoryService:Redo(): boolean

Reapplies the latest undone editing operation.

Undo

HistoryService:Undo(): boolean

Restores the state before the latest editing operation.

Events

Redone

HistoryService.Redone: RBXScriptSignal

Fires after an editing operation is redone.

Undone

HistoryService.Undone: RBXScriptSignal

Fires after an editing operation is undone.

Inherited members

Inherited47

Instance