HistoryService
Records and restores editing history.
- Service
game:GetService("HistoryService")- Inherits
- Instance
- Replication
- Never
Behavior
HistoryService records and restores editing history.
Summary
Whether an undone editing operation can be redone.
Whether an editing operation can be undone.
The label of the next operation that would be redone.
The label of the next operation that would be undone.
Returns this instance if it is an ExecutionGroup.
Reapplies the latest undone editing operation.
Restores the state before the latest editing operation.
Fires after an editing operation is redone.
Fires after an editing operation is undone.
Properties
CanRedo
HistoryService.CanRedo: boolean = falseWhether an undone editing operation can be redone.
CanUndo
HistoryService.CanUndo: boolean = falseWhether an editing operation can be undone.
RedoLabel
HistoryService.RedoLabel: string? = nilThe label of the next operation that would be redone.
UndoLabel
HistoryService.UndoLabel: string? = nilThe 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(): booleanReapplies the latest undone editing operation.
Undo
HistoryService:Undo(): booleanRestores the state before the latest editing operation.
Events
Redone
HistoryService.Redone: RBXScriptSignalFires after an editing operation is redone.
Undone
HistoryService.Undone: RBXScriptSignalFires after an editing operation is undone.
Inherited members
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying