GBX.lua.DataModel (Object)
From Goodblox Wiki
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>")
DataModel
The DataModel is the keystone of goodblox's structure. It houses all of the services such as the Workspace and Lighting in a game. (With the exception of the "gameSettings") It even contains hidden services that GoodBlox Studio uses.
The DataModel, or as you probably know it as the "game" that you index in your scripts.
Functions
In addition to the Global functions, the DataModel also has these:
# indicates a locked function. These should NOT be tampered with.
- # ClearContent
- # ClearMessage
- # GetJobIntervalPeakFraction
- # GetJobTimePeakFraction
- # GetJobsExtendedStats
- # GetJobsInfo
- # GetObjects
- GetRemoteBuildMode
- GetService
- # HttpGet
- # HttpPost
- # Load
- # Save
- # ServerSave
- # SetJobsExtendedStatsWindow
- # SetMessage
- # SetMessageBrickCount
- # SetPlaceID
- # SetRemoteBuildMode
- # SetScreenshotInfo
- # SetServerSaveUrl
- # SetVideoInfo
- # Shutdown
- # ToggleTools
- # get
- service
Properties
In addition to the Global properties, the DataModel also has these:
Events
In addition to the Global events, the DataModel also has these: