DataModel

extends ServiceProvider

Class fields

FieldXML typeValue
NamestringDataModel

Properties

16
CreatorId
int64
FieldXML typeValue
NamestringCreatorId
CreatorType
CreatorType
FieldXML typeValue
NamestringCreatorType
ForceR15
bool
FieldXML typeValue
NamestringForceR15
GearGenreSetting
GearGenreSetting
FieldXML typeValue
NamestringGearGenreSetting
Genre
Genre
FieldXML typeValue
NamestringGenre
IsPersonalServer
bool
FieldXML typeValue
NamestringIsPersonalServer
JobId
string
FieldXML typeValue
NamestringJobId
LocalSaveEnabled
bool
FieldXML typeValue
NamestringLocalSaveEnabled
Optimization
Optimization
FieldXML typeValue
NamestringOptimization
PlaceId
int64
FieldXML typeValue
NamestringPlaceId
PlaceVersion
int
FieldXML typeValue
NamestringPlaceVersion
VIPServerId
string
FieldXML typeValue
NamestringVIPServerId
VIPServerOwnerId
int64
FieldXML typeValue
NamestringVIPServerOwnerId
Workspace
Object
FieldXML typeValue
NamestringWorkspace
lighting
Object
FieldXML typeValue
Namestringlighting
workspace
Object
FieldXML typeValue
Namestringworkspace
Deprecatedbooltrue
summarystringDeprecated. Use Workspace

Functions

44
AddStat
(displayName: string, stat: string) → void
FieldXML typeValue
NamestringAddStat
ClearMessage
() → void
FieldXML typeValue
NamestringClearMessage
FinishShutdown
(localSave: bool) → void
FieldXML typeValue
NamestringFinishShutdown
GetJobIntervalPeakFraction
(jobname: string, greaterThan: double) → double
FieldXML typeValue
NamestringGetJobIntervalPeakFraction
GetJobTimePeakFraction
(jobname: string, greaterThan: double) → double
FieldXML typeValue
NamestringGetJobTimePeakFraction
GetJobsExtendedStats
() → Array
FieldXML typeValue
NamestringGetJobsExtendedStats
GetJobsInfo
() → Array
FieldXML typeValue
NamestringGetJobsInfo
GetMessage
() → string
FieldXML typeValue
NamestringGetMessage
GetRemoteBuildMode
() → bool
FieldXML typeValue
NamestringGetRemoteBuildMode
HttpGet
(url: string, synchronous: bool = …) → string
FieldXML typeValue
NamestringHttpGet
HttpPost
(url: string, data: string, synchronous: bool = …, contentType: string = …) → string
FieldXML typeValue
NamestringHttpPost
IsGearTypeAllowed
(gearType: GearType) → bool
FieldXML typeValue
NamestringIsGearTypeAllowed
IsLoaded
() → bool
FieldXML typeValue
NamestringIsLoaded
summarystringReturns true if the game has finished loading, false otherwise. Check this before listening to the Loaded signal to ensure a script knows when a game finishes loading.
Load
(url: Content) → void
FieldXML typeValue
NamestringLoad
LoadGame
(assetID: int) → void
FieldXML typeValue
NamestringLoadGame
LoadPlugins
() → void
FieldXML typeValue
NamestringLoadPlugins
LoadWorld
(assetID: int) → void
FieldXML typeValue
NamestringLoadWorld
RemoveStat
(stat: string) → void
FieldXML typeValue
NamestringRemoveStat
ReportInGoogleAnalytics
(category: string, action: string = …, label: string = …, value: int = …) → void
FieldXML typeValue
NamestringReportInGoogleAnalytics
ReportMeasurement
(id: string, key1: string, value1: string, key2: string, value2: string) → void
FieldXML typeValue
NamestringReportMeasurement
Save
(url: Content) → void
FieldXML typeValue
NamestringSave
SaveStats
() → void
FieldXML typeValue
NamestringSaveStats
ServerSave
() → void
FieldXML typeValue
NamestringServerSave
SetCreatorID
(creatorID: int64, creatorType: CreatorType) → void
FieldXML typeValue
NamestringSetCreatorID
Deprecatedbooltrue
summarystringUse SetCreatorId() instead
SetCreatorId
(creatorId: int64, creatorType: CreatorType) → void
FieldXML typeValue
NamestringSetCreatorId
SetGameInstanceId
(instanceID: string) → void
FieldXML typeValue
NamestringSetGameInstanceId
SetGearSettings
(genreRestriction: GearGenreSetting, allowedGenres: int) → void
FieldXML typeValue
NamestringSetGearSettings
SetGenre
(genre: Genre) → void
FieldXML typeValue
NamestringSetGenre
SetJobsExtendedStatsWindow
(seconds: double) → void
FieldXML typeValue
NamestringSetJobsExtendedStatsWindow
SetMessage
(message: string) → void
FieldXML typeValue
NamestringSetMessage
SetMessageBrickCount
() → void
FieldXML typeValue
NamestringSetMessageBrickCount
SetOptimization
(optimization: Optimization) → void
FieldXML typeValue
NamestringSetOptimization
SetPlaceID
(placeID: int64, robloxPlace: bool = …) → void
FieldXML typeValue
NamestringSetPlaceID
Deprecatedbooltrue
summarystringUse SetPlaceId() instead
SetPlaceId
(placeId: int64, robloxPlace: bool = …) → void
FieldXML typeValue
NamestringSetPlaceId
SetPlaceVersion
(placeId: int) → void
FieldXML typeValue
NamestringSetPlaceVersion
SetRemoteBuildMode
(buildModeEnabled: bool) → void
FieldXML typeValue
NamestringSetRemoteBuildMode
SetScreenshotInfo
(info: string) → void
FieldXML typeValue
NamestringSetScreenshotInfo
SetServerSaveUrl
(url: string) → void
FieldXML typeValue
NamestringSetServerSaveUrl
SetUniverseId
(universeId: int) → void
FieldXML typeValue
NamestringSetUniverseId
SetVIPServerId
(newId: string) → void
FieldXML typeValue
NamestringSetVIPServerId
SetVIPServerOwnerId
(newId: int64) → void
FieldXML typeValue
NamestringSetVIPServerOwnerId
SetVideoInfo
(info: string) → void
FieldXML typeValue
NamestringSetVideoInfo
Shutdown
() → void
FieldXML typeValue
NamestringShutdown
ToggleTools
() → void
FieldXML typeValue
NamestringToggleTools

Yield functions

4
HttpGetAsync
(url: string) → string
FieldXML typeValue
NamestringHttpGetAsync
HttpPostAsync
(url: string, data: string, contentType: string = …) → string
FieldXML typeValue
NamestringHttpPostAsync
SavePlace
(saveFilter: SaveFilter = …) → bool
FieldXML typeValue
NamestringSavePlace
SaveToRoblox
() → bool
FieldXML typeValue
NamestringSaveToRoblox

Events

5
AllowedGearTypeChanged
() → void
FieldXML typeValue
NamestringAllowedGearTypeChanged
GraphicsQualityChangeRequest
(betterQuality: bool) → void
FieldXML typeValue
NamestringGraphicsQualityChangeRequest
ItemChanged
(object: Instance, descriptor: Property) → void
FieldXML typeValue
NamestringItemChanged
Loaded
() → void
FieldXML typeValue
NamestringLoaded
summarystringFires when the game finishes loading. Use this to know when to remove your custom loading gui. It is best to check IsLoaded() before connecting to this event, as the game may load before the event is connected to.
RenderDistanceChangeRequest
(betterRenderDistance: bool) → void
FieldXML typeValue
NamestringRenderDistanceChangeRequest

Callbacks

2
OnClose
() → Tuple
FieldXML typeValue
NamestringOnClose
RequestShutdown
() → bool
FieldXML typeValue
NamestringRequestShutdown