GBX.lua.ChangeHistoryService (Service)
From Goodblox Wiki
Jump to navigationJump to search
Note: This is a Game Service, and therefore isn't like other Objects in the Class Explorer. You have to call it with :
game:GetService("<Service name>")
The ChangeHistoryService provides a way to undo and redo script changes made in GoodBlox Studio. It only works in the Command bar or in a script ran from a local file (Tools > Execute Script...)
Functions
In addition to the global functions, the ChangeHistoryService also has these functions:
# indicates a locked function. These should NOT be tampered with.
- # GetCanRedo
- # GetCanUndo
- # Redo
- # SetEnabled
- # SetWaypoint
- # Undo
Properties
The ChangeHistoryService object only incorporates the global properties.
Events
The ChangeHistoryService object only incorporates the global events.