DataModel
The root of Roblox's parent-child hierarchy. Its direct children are services, such as Workspace and Lighting, that act as the fundamental components of a Roblox game.
Memory category | Instances |
---|
Member index 63
Removed member index 44
Description
The Data Model (commonly known as game
after the global variable used to access it) is the root of Roblox's
parent-child hierarchy. Its direct children are services, such as
Workspace and Lighting, that act as the fundamental components
of a Roblox game.
History 368
- 648 Change ReturnType of InsertObjectsAndJoinIfLegacyAsync from Objects to Instances
- 648 Change ReturnType of GetObjectsAsync from Objects to Instances
- 648 Change ReturnType of GetObjectsAllOrNone from Objects to Instances
- 648 Change ReturnType of GetObjects from Objects to Instances
- 645 Change Parameters of Load from (url: Content) to (url: ContentId)
- 645 Change Parameters of InsertObjectsAndJoinIfLegacyAsync from (url: Content) to (url: ContentId)
- 645 Change Parameters of GetObjectsAsync from (url: Content) to (url: ContentId)
- 645 Change Parameters of GetObjectsAllOrNone from (url: Content, binaryFormatOnly: bool = false) to (url: ContentId, binaryFormatOnly: bool = false)
- 645 Change Parameters of GetObjects from (url: Content) to (url: ContentId)
- 573 Change ReturnType of Shutdown from void to null
- 573 Change ReturnType of SetUniverseId from void to null
- 573 Change ReturnType of SetPlaceId from void to null
- 573 Change ReturnType of SetIsLoaded from void to null
- 573 Change ReturnType of SetFlagVersion from void to null
- 573 Change ReturnType of ReportInGoogleAnalytics from void to null
- 573 Change ReturnType of OpenVideosFolder from void to null
- 573 Change ReturnType of OpenScreenshotsFolder from void to null
- 573 Change ReturnType of Load from void to null
- 573 Change ReturnType of BindToClose from void to null
- 571 Add SetFlagVersion
- 569 Add UniverseMetadataLoaded
- 569 Add IsUniverseMetadataLoaded
- 568 Add SetIsLoaded
- 568 Add IsContentLoaded
- 557 Add GetPlaySessionId
- 557 Change Parameters of GetObjectsAllOrNone from (url: Content) to (url: Content, binaryFormatOnly: bool = false)
- 554 Remove GetPlaySessionId
- 555 Add GetPlaySessionId
- 553 Change PreferredDescriptor of OnClose from to BindToClose
- 553 Change PreferredDescriptor of workspace from to Workspace
- 553 Change Default of workspace from to
- 553 Change Default of lighting from to
- 553 Change Default of Workspace from to
- 553 Change PreferredDescriptor of from to PrivateServerOwnerId
- 553 Change Default of from to
- 553 Change PreferredDescriptor of from to PrivateServerId
- 553 Change Default of from to
- 553 Add
- 553 Change Default of PrivateServerOwnerId from to
- 553 Change Default of PrivateServerId from to
- 553 Change Default of PlaceVersion from to
- 553 Change Default of PlaceId from to
- 553 Change Default of JobId from to
- 553 Change Default of from to
- 553 Change Default of Genre from to
- 553 Change Default of GearGenreSetting from to
- 553 Change Default of GameId from to
- 553 Add
- 553 Add
- 553 Change Default of CreatorType from to
- 553 Change Default of CreatorId from to
- 520 Add GetObjectsAllOrNone
- 486 Change ThreadSafety of workspace from ReadOnly to ReadSafe
- 486 Change ThreadSafety of lighting from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Workspace from ReadOnly to ReadSafe
- 486 Change ThreadSafety of from ReadOnly to ReadSafe
- 486 Change ThreadSafety of from ReadOnly to ReadSafe
- 486 Change ThreadSafety of PrivateServerOwnerId from ReadOnly to ReadSafe
- 486 Change ThreadSafety of PrivateServerId from ReadOnly to ReadSafe
- 486 Change ThreadSafety of PlaceVersion from ReadOnly to ReadSafe
- 486 Change ThreadSafety of PlaceId from ReadOnly to ReadSafe
- 486 Change ThreadSafety of JobId from ReadOnly to ReadSafe
- 486 Change ThreadSafety of from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Genre from ReadOnly to ReadSafe
- 486 Change ThreadSafety of GearGenreSetting from ReadOnly to ReadSafe
- 486 Change ThreadSafety of GameId from ReadOnly to ReadSafe
- 486 Change ThreadSafety of CreatorType from ReadOnly to ReadSafe
- 486 Change ThreadSafety of CreatorId from ReadOnly to ReadSafe
- 470 Add ScreenshotSavedToAlbum
- 469 Change Tags of from [ReadOnly, NotReplicated] to [Hidden, ReadOnly, NotReplicated]
- 462 Change ThreadSafety of OnClose from to Unsafe
- 462 Change ThreadSafety of ScreenshotReady from to Unsafe
- 462 Change ThreadSafety of Loaded from to Unsafe
- 462 Change ThreadSafety of ItemChanged from to Unsafe
- 462 Change ThreadSafety of GraphicsQualityChangeRequest from to Unsafe
- 462 Change ThreadSafety of AllowedGearTypeChanged from to Unsafe
- 462 Change ThreadSafety of Shutdown from to Unsafe
- 462 Change ThreadSafety of SetUniverseId from to Unsafe
- 462 Change ThreadSafety of SetPlaceId from to Unsafe
- 462 Change ThreadSafety of SetFastStringForTesting from to Unsafe
- 462 Change ThreadSafety of SetFastIntForTesting from to Unsafe
- 462 Change ThreadSafety of SetFastFlagForTesting from to Unsafe
- 462 Change ThreadSafety of SavePlace from to Unsafe
- 462 Change ThreadSafety of ReportInGoogleAnalytics from to Unsafe
- 462 Change ThreadSafety of OpenVideosFolder from to Unsafe
- 462 Change ThreadSafety of OpenScreenshotsFolder from to Unsafe
- 462 Change ThreadSafety of Load from to Unsafe
- 462 Change ThreadSafety of IsLoaded from to Unsafe
- 462 Change ThreadSafety of IsGearTypeAllowed from to Unsafe
- 462 Change ThreadSafety of InsertObjectsAndJoinIfLegacyAsync from to Unsafe
- 462 Change ThreadSafety of HttpPostAsync from to Unsafe
- 462 Change ThreadSafety of HttpGetAsync from to Unsafe
- 462 Change ThreadSafety of GetRemoteBuildMode from to Unsafe
- 462 Change ThreadSafety of GetObjectsList from to Unsafe
- 462 Change ThreadSafety of GetObjectsAsync from to Unsafe
- 462 Change ThreadSafety of GetObjects from to Unsafe
- 462 Change ThreadSafety of GetMessage from to Unsafe
- 462 Change ThreadSafety of GetJobsInfo from to Unsafe
- 462 Change ThreadSafety of GetFastString from to Unsafe
- 462 Change ThreadSafety of GetFastInt from to Unsafe
- 462 Change ThreadSafety of GetFastFlag from to Unsafe
- 462 Change ThreadSafety of GetEngineFeature from to Unsafe
- 462 Change ThreadSafety of DefineFastString from to Unsafe
- 462 Change ThreadSafety of DefineFastInt from to Unsafe
- 462 Change ThreadSafety of DefineFastFlag from to Unsafe
- 462 Change ThreadSafety of BindToClose from to Unsafe
- 462 Change ThreadSafety of workspace from to ReadOnly
- 462 Change ThreadSafety of lighting from to ReadOnly
- 462 Change ThreadSafety of Workspace from to ReadOnly
- 462 Change ThreadSafety of from to ReadOnly
- 462 Change ThreadSafety of from to ReadOnly
- 462 Change ThreadSafety of PrivateServerOwnerId from to ReadOnly
- 462 Change ThreadSafety of PrivateServerId from to ReadOnly
- 462 Change ThreadSafety of PlaceVersion from to ReadOnly
- 462 Change ThreadSafety of PlaceId from to ReadOnly
- 462 Change ThreadSafety of JobId from to ReadOnly
- 462 Change ThreadSafety of from to ReadOnly
- 462 Change ThreadSafety of Genre from to ReadOnly
- 462 Change ThreadSafety of GearGenreSetting from to ReadOnly
- 462 Change ThreadSafety of GameId from to ReadOnly
- 462 Change ThreadSafety of CreatorType from to ReadOnly
- 462 Change ThreadSafety of CreatorId from to ReadOnly
- 454 Remove GetJobsExtendedStats
- 454 Remove GetJobTimePeakFraction
- 454 Remove GetJobIntervalPeakFraction
- 431 Add GetEngineFeature
- 416 Change Security of GetFastString from RobloxScriptSecurity to LocalUserSecurity
- 416 Change Security of GetFastInt from RobloxScriptSecurity to LocalUserSecurity
- 416 Change Security of GetFastFlag from RobloxScriptSecurity to LocalUserSecurity
- 414 Change Parameters of HttpPostAsync from (url: string, data: string, contentType: string = */*, httpRequestType: HttpRequestType = Default, doNotAllowDiabolicalMode: bool = false) to (url: string, data: string, contentType: string = */*, httpRequestType: HttpRequestType = Default)
- 414 Change Parameters of HttpGetAsync from (url: string, httpRequestType: HttpRequestType = Default, doNotAllowDiabolicalMode: bool = false) to (url: string, httpRequestType: HttpRequestType = Default)
- 412 Add SetFastStringForTesting
- 412 Add SetFastIntForTesting
- 412 Add SetFastFlagForTesting
- 409 Remove
- 408 Add
- 396 Add InsertObjectsAndJoinIfLegacyAsync
- 389 Add GetFastString
- 389 Add GetFastInt
- 389 Add GetFastFlag
- 389 Add DefineFastString
- 389 Add DefineFastInt
- 389 Add DefineFastFlag
- 385 Change Tags of IsGearTypeAllowed from [] to [Deprecated]
- 385 Change Tags of GearGenreSetting from [ReadOnly, NotReplicated] to [ReadOnly, NotReplicated, Deprecated]
- 382 Add GetObjectsAsync
- 375 Add GetObjectsList
- 352 Change Tags of from [ReadOnly, NotReplicated] to [Hidden, ReadOnly, NotReplicated, Deprecated]
- 352 Change Tags of from [ReadOnly, NotReplicated] to [Hidden, ReadOnly, NotReplicated, Deprecated]
- 352 Add PrivateServerOwnerId
- 352 Add PrivateServerId
- 349 Add SetUniverseId
- 349 Add SetPlaceId
- 349 Add GetObjects
- 331 Remove HttpPost
- 331 Remove HttpGet
- 329 Change ValueType of workspace from Object to Workspace
- 329 Change ValueType of lighting from Object to Instance
- 329 Change ValueType of Workspace from Object to Workspace
- 326 Change ValueType of from int to int64
- 323 Change ValueType of GameId from int to int64
- 323 Change ValueType of CreatorId from int to int64
- 315 Change ValueType of PlaceId from int to int64
- 311 Remove SetVideoInfo
- 311 Remove SetUniverseId
- 311 Remove SetScreenshotInfo
- 311 Remove SetPlaceVersion
- 311 Remove SetPlaceId
- 311 Remove SetPlaceID
- 311 Remove SetGenre
- 311 Remove SetGearSettings
- 311 Remove SetCreatorId
- 311 Remove SetCreatorID
- 310 Remove RequestShutdown
- 310 Remove SetVIPServerOwnerId
- 310 Remove SetVIPServerId
- 310 Remove SetServerSaveUrl
- 310 Remove SetJobsExtendedStatsWindow
- 310 Remove ServerSave
- 310 Remove SaveToRoblox
- 310 Remove SaveStats
- 310 Remove Save
- 310 Remove ReportMeasurement
- 310 Remove RemoveStat
- 310 Remove LoadPlugins
- 310 Remove FinishShutdown
- 310 Remove AddStat
- 304 Add GameId
- 298 Change Parameters of HttpPostAsync from (url: string, data: string, contentType: string = */*) to (url: string, data: string, contentType: string = */*, httpRequestType: HttpRequestType = Default, doNotAllowDiabolicalMode: bool = false)
- 298 Change Parameters of HttpPost from (url: string, data: string, synchronous: bool = false, contentType: string = */*) to (url: string, data: string, synchronous: bool = false, contentType: string = */*, httpRequestType: HttpRequestType = Default, doNotAllowDiabolicalMode: bool = false)
- 298 Change Parameters of HttpGetAsync from (url: string) to (url: string, httpRequestType: HttpRequestType = Default, doNotAllowDiabolicalMode: bool = false)
- 298 Change Parameters of HttpGet from (url: string, synchronous: bool = false) to (url: string, synchronous: bool = false, httpRequestType: HttpRequestType = Default, doNotAllowDiabolicalMode: bool = false)
- 296 Remove LoadWorld
- 296 Remove LoadGame
- 292 Change Tags of ItemChanged from [] to [Deprecated]
- 292 Change Tags of AllowedGearTypeChanged from [] to [Deprecated]
- 292 Add OpenVideosFolder
- 287 Add ScreenshotReady
- 287 Add OpenScreenshotsFolder
- 285 Remove ScreenshotReady
- 285 Remove OpenScreenshotsFolder
- 286 Add ScreenshotReady
- 286 Add OpenScreenshotsFolder
- 285 Remove ScreenshotReady
- 285 Remove OpenScreenshotsFolder
- 286 Add ScreenshotReady
- 286 Add OpenScreenshotsFolder
- 273 Remove ToggleTools
- 273 Remove SetRemoteBuildMode
- 273 Remove SetMessageBrickCount
- 273 Remove SetMessage
- 273 Change Tags of SavePlace from [Yields] to [Yields, Deprecated]
- 273 Change Tags of GetRemoteBuildMode from [] to [Deprecated]
- 273 Change Tags of GetMessage from [] to [Deprecated]
- 273 Remove ClearMessage
- 273 Remove LocalSaveEnabled
- 273 Remove IsPersonalServer
- 272 Add ToggleTools
- 272 Add SetRemoteBuildMode
- 272 Add SetMessageBrickCount
- 272 Add SetMessage
- 272 Change Tags of SavePlace from [Yields, Deprecated] to [Yields]
- 272 Change Tags of GetRemoteBuildMode from [Deprecated] to []
- 272 Change Tags of GetMessage from [Deprecated] to []
- 272 Add ClearMessage
- 272 Add LocalSaveEnabled
- 272 Add IsPersonalServer
- 273 Remove ToggleTools
- 273 Remove SetRemoteBuildMode
- 273 Remove SetMessageBrickCount
- 273 Remove SetMessage
- 273 Change Tags of SavePlace from [Yields] to [Yields, Deprecated]
- 273 Change Tags of GetRemoteBuildMode from [] to [Deprecated]
- 273 Change Tags of GetMessage from [] to [Deprecated]
- 273 Remove ClearMessage
- 273 Remove LocalSaveEnabled
- 273 Remove IsPersonalServer
- 268 Change Tags of OnClose from [] to [Deprecated]
- 264 Add BindToClose
- 256 Add
- 238 Remove SetGameInstanceId
- 236 Add SetGameInstanceId
- 217 Remove ClearContent
- 215 Remove get
- 215 Remove GetObjects
- 210 Add SetVIPServerOwnerId
- 210 Add
- 181 Add SetVIPServerId
- 181 Add
- 173 Add SetUniverseId
- 170 Add ReportInGoogleAnalytics
- 154 Add GetMessage
- 153 Remove CreatePlace
- 152 Change Security of GetObjects from LocalUserSecurity to PluginSecurity
- 152 Change Security of GetJobsInfo from LocalUserSecurity to PluginSecurity
- 152 Change Security of GetJobsExtendedStats from LocalUserSecurity to PluginSecurity
- 152 Change Security of GetJobTimePeakFraction from LocalUserSecurity to PluginSecurity
- 152 Change Security of GetJobIntervalPeakFraction from LocalUserSecurity to PluginSecurity
- 151 Change Security of SetPlaceVersion from LocalUserSecurity to PluginSecurity
- 151 Change Security of SetPlaceId from security1 to PluginSecurity
- 151 Change Security of SetPlaceID from security1 to PluginSecurity
- 151 Change Security of SetGenre from LocalUserSecurity to PluginSecurity
- 151 Change Security of SetGearSettings from LocalUserSecurity to PluginSecurity
- 151 Change Security of SetCreatorId from LocalUserSecurity to PluginSecurity
- 151 Change Security of SetCreatorID from LocalUserSecurity to PluginSecurity
- 150 Change Security of SetPlaceId from LocalUserSecurity to security1
- 150 Change Security of SetPlaceID from LocalUserSecurity to security1
- 143 Add OnClose
- 138 Change ReturnType of SavePlace from Tuple to bool
- 135 Change Parameters of HttpPostAsync from (url: string, data: string) to (url: string, data: string, contentType: string = */*)
- 135 Change Parameters of HttpPost from (url: string, data: string, synchronous: bool = false) to (url: string, data: string, synchronous: bool = false, contentType: string = */*)
- 131 Change Tags of RequestShutdown from [] to [NoYield]
- 131 Add CreatePlace
- 128 Remove ActivateExperimentalFeatures
- 122 Add ActivateExperimentalFeatures
- 120 Add SetPlaceVersion
- 120 Add PlaceVersion
- 118 Remove SavePlaceFinished
- 118 Change Tags of SavePlace from [] to [Yields]
- 118 Change Security of SavePlace from RobloxPlaceSecurity to None
- 118 Change ReturnType of SavePlace from void to Tuple
- 118 Add LoadWorld
- 118 Add LoadGame
- 115 Add SavePlaceFinished
- 115 Add SavePlace
- 91 Add SaveStats
- 91 Add RemoveStat
- 91 Add AddStat
- 90 Remove SaveStats
- 90 Remove RemoveStat
- 90 Remove AddStat
- 91 Add SaveStats
- 91 Add RemoveStat
- 91 Add AddStat
- 85 Change Security of HttpPostAsync from RobloxSecurity to RobloxScriptSecurity
- 85 Change Security of HttpPost from RobloxSecurity to RobloxScriptSecurity
- 85 Change Security of HttpGetAsync from RobloxSecurity to RobloxScriptSecurity
- 85 Change Security of HttpGet from RobloxSecurity to RobloxScriptSecurity
- 84 Change Security of HttpPostAsync from RobloxScriptSecurity to RobloxSecurity
- 84 Change Security of HttpPost from RobloxScriptSecurity to RobloxSecurity
- 84 Change Security of HttpGetAsync from RobloxScriptSecurity to RobloxSecurity
- 84 Change Security of HttpGet from RobloxScriptSecurity to RobloxSecurity
- 83 Change Security of HttpPostAsync from RobloxSecurity to RobloxScriptSecurity
- 83 Change Security of HttpPost from RobloxSecurity to RobloxScriptSecurity
- 83 Change Security of HttpGetAsync from RobloxSecurity to RobloxScriptSecurity
- 83 Change Security of HttpGet from RobloxSecurity to RobloxScriptSecurity
- 80 Add Loaded
- 80 Add IsLoaded
- 79 Remove Loaded
- 79 Remove IsLoaded
- 80 Add Loaded
- 80 Add IsLoaded
- 68 Add lighting
- 49 Remove
- 48 Change Tags of from [Hidden] to [Hidden, Deprecated]
- 48 Change Tags of IsPersonalServer from [Hidden] to []
- 47 Add RequestShutdown
- 47 Add ItemChanged
- 47 Add GraphicsQualityChangeRequest
- 47 Add AllowedGearTypeChanged
- 47 Add get
- 47 Add ToggleTools
- 47 Add Shutdown
- 47 Add SetVideoInfo
- 47 Add SetServerSaveUrl
- 47 Add SetScreenshotInfo
- 47 Add SetRemoteBuildMode
- 47 Add SetPlaceId
- 47 Add SetPlaceID
- 47 Add SetMessageBrickCount
- 47 Add SetMessage
- 47 Add SetJobsExtendedStatsWindow
- 47 Add SetGenre
- 47 Add SetGearSettings
- 47 Add SetCreatorId
- 47 Add SetCreatorID
- 47 Add ServerSave
- 47 Add SaveToRoblox
- 47 Add Save
- 47 Add ReportMeasurement
- 47 Add LoadPlugins
- 47 Add Load
- 47 Add IsGearTypeAllowed
- 47 Add HttpPostAsync
- 47 Add HttpPost
- 47 Add HttpGetAsync
- 47 Add HttpGet
- 47 Add GetRemoteBuildMode
- 47 Add GetObjects
- 47 Add GetJobsInfo
- 47 Add GetJobsExtendedStats
- 47 Add GetJobTimePeakFraction
- 47 Add GetJobIntervalPeakFraction
- 47 Add FinishShutdown
- 47 Add ClearMessage
- 47 Add ClearContent
- 47 Add workspace
- 47 Add Workspace
- 47 Add
- 47 Add PlaceId
- 47 Add LocalSaveEnabled
- 47 Add JobId
- 47 Add IsPersonalServer
- 47 Add Genre
- 47 Add GearGenreSetting
- 47 Add CreatorType
- 47 Add CreatorId
- 47 Add DataModel
Members 63
AllowedGearTypeChanged
Parameters (0) | ||
---|---|---|
No parameters. |
This event fires when SetGearSettings is called with a different value for allowedGenres.
Thread safety | Unsafe |
---|
History 3
- 462 Change ThreadSafety of AllowedGearTypeChanged from to Unsafe
- 292 Change Tags of AllowedGearTypeChanged from [] to [Deprecated]
- 47 Add AllowedGearTypeChanged
BindToClose
Parameters (1) | ||
---|---|---|
function | Function | |
Returns (1) | ||
null |
Binds a function to be called before the server shuts down. If the bound function accepts a parameter, it passes CloseReason specifying the reason for the server shutdown.
You can bind multiple functions by calling BindToClose() repeatedly. Bound functions are called in parallel and run at the same time.
The experience server waits 30 seconds for all bound functions to stop running before it shuts down. After 30 seconds, the server shuts down even if functions are still running.
To verify that the current session is not in Roblox Studio, use RunService:IsStudio(). This prevents bound functions from completing their run in offline testing sessions.
When you use DataStoreService, you should also use BindToClose
to bind a function saving all unsaved data to
DataStores. This prevents data loss if the server
shuts down unexpectedly.
See also:
- CloseReason for reasons for the experience server shutdown.
- PluginGui:BindToClose(), which binds a function to a PluginGui close button.
Thread safety | Unsafe |
---|
History 3
- 573 Change ReturnType of BindToClose from void to null
- 462 Change ThreadSafety of BindToClose from to Unsafe
- 264 Add BindToClose
CreatorId
Type | Default | |
---|---|---|
int64 |
This property describes the ID of the user or group that owns the place. If the DataModel.CreatorType property is 'User' then CreatorId will be the Player.UserId of the place's owner. If the DataModel.CreatorType is 'Group' then CreatorId will be the ID of the group that owns the place.
Thread safety | ReadSafe |
---|---|
Category | State |
Loaded/Saved | false |
CreatorType
Type | Default | |
---|---|---|
CreatorType |
This property describes the CreatorType of the place, whether the place is owned by a user or a group.
If the CreatorType is 'User', then the DataModel.CreatorId property will describe the UserId of the account that owns the game. If the CreatorType is 'Group', then it will describe the group ID.
Thread safety | ReadSafe |
---|---|
Category | State |
Loaded/Saved | false |
History 4
- 553 Change Default of CreatorType from to
- 486 Change ThreadSafety of CreatorType from ReadOnly to ReadSafe
- 462 Change ThreadSafety of CreatorType from to ReadOnly
- 47 Add CreatorType
DefineFastFlag
Parameters (2) | ||
---|---|---|
name | string | |
defaultValue | bool | |
Returns (1) | ||
bool |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of DefineFastFlag from to Unsafe
- 389 Add DefineFastFlag
DefineFastInt
Parameters (2) | ||
---|---|---|
name | string | |
defaultValue | int | |
Returns (1) | ||
int |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of DefineFastInt from to Unsafe
- 389 Add DefineFastInt
DefineFastString
Parameters (2) | ||
---|---|---|
name | string | |
defaultValue | string | |
Returns (1) | ||
string |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of DefineFastString from to Unsafe
- 389 Add DefineFastString
GameId
Type | Default | |
---|---|---|
int64 |
This property describes the ID of the experience that the place running on the server belongs to.
This ID can be found in the top right corner of the Asset Manager in Roblox Studio. When using Roblox Studio, if the place has not been published to Roblox then the GameId will correspond with the template being used.
See also:
- DataModel.PlaceId, which describes the ID of the place running on the server
- DataModel.JobId, which is a unique identifier for the server game instance running
- TeleportService, which is a service that can be used to transport Players between games
Thread safety | ReadSafe |
---|---|
Category | State |
Loaded/Saved | false |
GearGenreSetting
Type | Default | |
---|---|---|
GearGenreSetting |
This property, along with DataModel.Genre, no longer functions correctly and attempting to read it may throw an error.
Thread safety | ReadSafe |
---|---|
Category | State |
Loaded/Saved | false |
History 5
- 553 Change Default of GearGenreSetting from to
- 486 Change ThreadSafety of GearGenreSetting from ReadOnly to ReadSafe
- 462 Change ThreadSafety of GearGenreSetting from to ReadOnly
- 385 Change Tags of GearGenreSetting from [ReadOnly, NotReplicated] to [ReadOnly, NotReplicated, Deprecated]
- 47 Add GearGenreSetting
Genre
Type | Default | |
---|---|---|
Genre |
This property is broken and should not be used.
This property historically described the Genre of the place as set on the Roblox website.
This property, along with DataModel.GearGenreSetting, no longer functions correctly due to genres existing on the Roblox website that are not reflected in the Genre enum. As a result, attempting to read this property may throw an error.
Thread safety | ReadSafe |
---|---|
Category | State |
Loaded/Saved | false |
GetEngineFeature
Parameters (1) | ||
---|---|---|
name | string | |
Returns (1) | ||
bool |
Security | LocalUserSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of GetEngineFeature from to Unsafe
- 431 Add GetEngineFeature
GetFastFlag
Parameters (1) | ||
---|---|---|
name | string | |
Returns (1) | ||
bool |
Security | LocalUserSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 462 Change ThreadSafety of GetFastFlag from to Unsafe
- 416 Change Security of GetFastFlag from RobloxScriptSecurity to LocalUserSecurity
- 389 Add GetFastFlag
GetFastInt
Parameters (1) | ||
---|---|---|
name | string | |
Returns (1) | ||
int |
Security | LocalUserSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 462 Change ThreadSafety of GetFastInt from to Unsafe
- 416 Change Security of GetFastInt from RobloxScriptSecurity to LocalUserSecurity
- 389 Add GetFastInt
GetFastString
Parameters (1) | ||
---|---|---|
name | string | |
Returns (1) | ||
string |
Security | LocalUserSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 462 Change ThreadSafety of GetFastString from to Unsafe
- 416 Change Security of GetFastString from RobloxScriptSecurity to LocalUserSecurity
- 389 Add GetFastString
GetJobsInfo
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Array |
Returns a table containing basic information about the jobs performed by the task scheduler.
In computing, a task scheduler is a system responsible for executing key tasks at the appropriate intervals.
You can also find live task scheduler statistics in the Task Scheduler window in Roblox Studio.
The first entry in the table returned is a reference dictionary containing the statistics (or headings) available. It is in the following format:
1 2 3 4 5 6 7 8 |
|
The subsequent entries in the table returned are dictionaries containing the above statistics for jobs performed by the task scheduler. For example:
1 2 3 4 5 6 7 8 |
|
See also:
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 462 Change ThreadSafety of GetJobsInfo from to Unsafe
- 152 Change Security of GetJobsInfo from LocalUserSecurity to PluginSecurity
- 47 Add GetJobsInfo
GetMessage
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
string |
This function will always return a blank string. It was originally used to set the message displayed on screen while the game was loading.
This system was phased out a very long time ago, and recently the APIs for setting this message were removed.
Thread safety | Unsafe |
---|
History 5
- 462 Change ThreadSafety of GetMessage from to Unsafe
- 273 Change Tags of GetMessage from [] to [Deprecated]
- 272 Change Tags of GetMessage from [Deprecated] to []
- 273 Change Tags of GetMessage from [] to [Deprecated]
- 154 Add GetMessage
GetObjects
Parameters (1) | ||
---|---|---|
url | ContentId | |
Returns (1) | ||
Instances |
This method returns an array of Instances associated with the given content URL. It can be used to insert content from the Roblox library. It's not possible to insert Sounds using this method as they do not have an Instance associated with them and have only a content URL.
Unlike InsertService:LoadAsset(), DataModel:GetObjects()
does
not require an asset to be "trusted," meaning that an asset doesn't need
to be owned by the logged in user, or created by Roblox, to be inserted.
However, if the asset is not owned by the logged in user it must be freely
available.
Due to this function's security context it can only be used by plugins or the command bar. For an alternative that can be used in Scripts and LocalScripts, see InsertService:LoadAsset().
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 7
- 648 Change ReturnType of GetObjects from Objects to Instances
- 645 Change Parameters of GetObjects from (url: Content) to (url: ContentId)
- 462 Change ThreadSafety of GetObjects from to Unsafe
- 349 Add GetObjects
- 215 Remove GetObjects
- 152 Change Security of GetObjects from LocalUserSecurity to PluginSecurity
- 47 Add GetObjects
GetObjectsAllOrNone
Parameters (2) | Default | |
---|---|---|
url | ContentId | |
binaryFormatOnly | bool | false |
Returns (1) | ||
Instances |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 4
- 648 Change ReturnType of GetObjectsAllOrNone from Objects to Instances
- 645 Change Parameters of GetObjectsAllOrNone from (url: Content, binaryFormatOnly: bool = false) to (url: ContentId, binaryFormatOnly: bool = false)
- 557 Change Parameters of GetObjectsAllOrNone from (url: Content) to (url: Content, binaryFormatOnly: bool = false)
- 520 Add GetObjectsAllOrNone
GetObjectsAsync
Parameters (1) | ||
---|---|---|
url | ContentId | |
Returns (1) | ||
Instances |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 4
- 648 Change ReturnType of GetObjectsAsync from Objects to Instances
- 645 Change Parameters of GetObjectsAsync from (url: Content) to (url: ContentId)
- 462 Change ThreadSafety of GetObjectsAsync from to Unsafe
- 382 Add GetObjectsAsync
GetObjectsList
Parameters (1) | ||
---|---|---|
urls | Array | |
Returns (1) | ||
Array |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of GetObjectsList from to Unsafe
- 375 Add GetObjectsList
GetPlaySessionId
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
string |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 557 Add GetPlaySessionId
- 554 Remove GetPlaySessionId
- 555 Add GetPlaySessionId
GetRemoteBuildMode
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
bool |
This method is no longer useful and will always return false. Use RunService:IsServer() to see if your code is running on the server.
Thread safety | Unsafe |
---|
History 5
- 462 Change ThreadSafety of GetRemoteBuildMode from to Unsafe
- 273 Change Tags of GetRemoteBuildMode from [] to [Deprecated]
- 272 Change Tags of GetRemoteBuildMode from [Deprecated] to []
- 273 Change Tags of GetRemoteBuildMode from [] to [Deprecated]
- 47 Add GetRemoteBuildMode
GraphicsQualityChangeRequest
Parameters (1) | |
---|---|
betterQuality | bool |
Fires when the user prompts an increase or decrease in graphics quality using the hotkeys.
This event fires under the following conditions:
- If the user presses F10, this event fires with a
betterQuality
argument oftrue
. - If the user presses ShiftF10, this event fires
with a
betterQuality
argument offalse
.
This event does not provide the current graphics quality level or cover all updates to the graphics quality. For example, changes made in the core GUI escape menu are not registered.
You can retrieve a user's SavedQualitySetting using UserGameSettings with the following snippet:
1
|
|
If the user's graphics settings are set to automatic then the SavedQualitySetting will be Automatic. There is currently no way for developers to reliably get the current graphics quality level of a user's machine.
Thread safety | Unsafe |
---|
History 2
- 462 Change ThreadSafety of GraphicsQualityChangeRequest from to Unsafe
- 47 Add GraphicsQualityChangeRequest
HttpGetAsync
Parameters (2) | Default | |
---|---|---|
url | string | |
httpRequestType | HttpRequestType | Default |
Returns (1) | ||
string |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 7
- 462 Change ThreadSafety of HttpGetAsync from to Unsafe
- 414 Change Parameters of HttpGetAsync from (url: string, httpRequestType: HttpRequestType = Default, doNotAllowDiabolicalMode: bool = false) to (url: string, httpRequestType: HttpRequestType = Default)
- 298 Change Parameters of HttpGetAsync from (url: string) to (url: string, httpRequestType: HttpRequestType = Default, doNotAllowDiabolicalMode: bool = false)
- 85 Change Security of HttpGetAsync from RobloxSecurity to RobloxScriptSecurity
- 84 Change Security of HttpGetAsync from RobloxScriptSecurity to RobloxSecurity
- 83 Change Security of HttpGetAsync from RobloxSecurity to RobloxScriptSecurity
- 47 Add HttpGetAsync
HttpPostAsync
Parameters (4) | Default | |
---|---|---|
url | string | |
data | string | |
contentType | string | */* |
httpRequestType | HttpRequestType | Default |
Returns (1) | ||
string |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 8
- 462 Change ThreadSafety of HttpPostAsync from to Unsafe
- 414 Change Parameters of HttpPostAsync from (url: string, data: string, contentType: string = */*, httpRequestType: HttpRequestType = Default, doNotAllowDiabolicalMode: bool = false) to (url: string, data: string, contentType: string = */*, httpRequestType: HttpRequestType = Default)
- 298 Change Parameters of HttpPostAsync from (url: string, data: string, contentType: string = */*) to (url: string, data: string, contentType: string = */*, httpRequestType: HttpRequestType = Default, doNotAllowDiabolicalMode: bool = false)
- 135 Change Parameters of HttpPostAsync from (url: string, data: string) to (url: string, data: string, contentType: string = */*)
- 85 Change Security of HttpPostAsync from RobloxSecurity to RobloxScriptSecurity
- 84 Change Security of HttpPostAsync from RobloxScriptSecurity to RobloxSecurity
- 83 Change Security of HttpPostAsync from RobloxSecurity to RobloxScriptSecurity
- 47 Add HttpPostAsync
InsertObjectsAndJoinIfLegacyAsync
Parameters (1) | ||
---|---|---|
url | ContentId | |
Returns (1) | ||
Instances |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 4
- 648 Change ReturnType of InsertObjectsAndJoinIfLegacyAsync from Objects to Instances
- 645 Change Parameters of InsertObjectsAndJoinIfLegacyAsync from (url: Content) to (url: ContentId)
- 462 Change ThreadSafety of InsertObjectsAndJoinIfLegacyAsync from to Unsafe
- 396 Add InsertObjectsAndJoinIfLegacyAsync
IsContentLoaded
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
bool |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
- 568 Add IsContentLoaded
IsGearTypeAllowed
Parameters (1) | ||
---|---|---|
gearType | GearType | |
Returns (1) | ||
bool |
Currently this function only returns the correct value on the client
This function returns whether gear of the given GearType is permitted to be added to Players' StarterGears. For example:
1
|
|
Whether gear of a specific GearType is permitted in the game is determined in a place's settings page under 'Permissions'. Note, all of a gear's associated GearTypes must be enabled for it to be permitted in a place.
Thread safety | Unsafe |
---|
History 3
- 462 Change ThreadSafety of IsGearTypeAllowed from to Unsafe
- 385 Change Tags of IsGearTypeAllowed from [] to [Deprecated]
- 47 Add IsGearTypeAllowed
IsLoaded
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
bool |
This function returns true if the client has finished loading the game for the first time.
When all initial Instances in the game have finished replicating to the client, this function will return true.
Unless they are parented to ReplicatedFirst, LocalScripts will not run while the game has not loaded. The following snippet, ran from a LocalScript in ReplicatedFirst will yield until the game has loaded:
1 2 3 |
|
See also:
- DataModel.Loaded, an event that fires when the game has loaded
- Instance:WaitForChild(), a function which can be used to wait for an individual Instance to replicate without having to wait for the whole game to
Thread safety | Unsafe |
---|
IsUniverseMetadataLoaded
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
bool |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
ItemChanged
Parameters (2) | |
---|---|
object | Instance |
descriptor | string |
This event fires when a property of any object in the DataModel is changed.
Thread safety | Unsafe |
---|
History 3
- 462 Change ThreadSafety of ItemChanged from to Unsafe
- 292 Change Tags of ItemChanged from [] to [Deprecated]
- 47 Add ItemChanged
JobId
Type | Default | |
---|---|---|
string |
This property is a unique identifier for the running game server instance. It is a universally unique identifier (UUID), meaning that no two servers, past or present, will ever have the same ID.
Defaults to an empty string in Studio.
See Also
- TeleportService:GetPlayerPlaceInstanceAsync() which can be used to retrieve the DataModel.JobId of a user's current server.
- TeleportService:TeleportToPlaceInstance() which can be used to teleport a Player to a specific server.
- DataModel.PrivateServerId describes the ID of the private server the game server instance belongs to.
- HttpService:GenerateGUID(), a function that can be used to generate your own UUIDs.
Thread safety | ReadSafe |
---|---|
Category | JobInfo |
Loaded/Saved | false |
Load
Parameters (1) | ||
---|---|---|
url | ContentId | |
Returns (1) | ||
null |
Security | LocalUserSecurity |
---|---|
Thread safety | Unsafe |
Loaded
Parameters (0) | ||
---|---|---|
No parameters. |
This event fires on the client when the game finishes loading for the first time.
The Loaded event fires when all initial Instances in the game have finished replicating to the client.
Unless they are parented to ReplicatedFirst, LocalScripts will not run prior to this event firing. The following snippet, ran from a LocalScript in ReplicatedFirst, will yield until the game has loaded:
if not game:IsLoaded() then
game.Loaded:Wait()
end
See also:
- DataModel:IsLoaded(), a function that returns if the game is loaded or not
- Instance:WaitForChild(), a function which can be used to wait for an individual Instance to replicate without having to wait for the whole game to load.
Thread safety | Unsafe |
---|
OnClose
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Tuple |
Invoked before the game is shut down. When this callback returns, or the timeout period is hit, the game finishes shutting down.
Thread safety | Unsafe |
---|
OpenScreenshotsFolder
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 7
- 573 Change ReturnType of OpenScreenshotsFolder from void to null
- 462 Change ThreadSafety of OpenScreenshotsFolder from to Unsafe
- 287 Add OpenScreenshotsFolder
- 285 Remove OpenScreenshotsFolder
- 286 Add OpenScreenshotsFolder
- 285 Remove OpenScreenshotsFolder
- 286 Add OpenScreenshotsFolder
OpenVideosFolder
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 573 Change ReturnType of OpenVideosFolder from void to null
- 462 Change ThreadSafety of OpenVideosFolder from to Unsafe
- 292 Add OpenVideosFolder
PlaceId
Type | Default | |
---|---|---|
int64 |
This property describes the ID of the place running on the server.
If the place has been published to Roblox, this ID can be found in Studio's Asset Manager by right-clicking the place inside of the Places folder and selecting Copy ID to Clipboard.
If the place has not been published to Roblox, this ID will correspond with the template being used.
See Also
- DataModel.GameId, which describes the ID of the experience that the current place belongs to
- DataModel.JobId, which is a unique identifier for the server game instance running
- TeleportService, which is a service that can be used to transport Players between places
Thread safety | ReadSafe |
---|---|
Category | State |
Loaded/Saved | false |
PlaceVersion
Type | Default | |
---|---|---|
int |
This property describes the version of the place the server is running on.
This version number corresponds with the version number shown under the Version History section of the place's settings. It is not the current version of the Roblox client. This property is 0 for all unpublished experiences.
When a server instance is created for a place, it uses the place's current version. If the place is later updated while this server is running, the server will remain at its current version.
This property can be used to display a ScreenGui showing the current version of the game to Players to assist with debugging.
Thread safety | ReadSafe |
---|---|
Category | State |
Loaded/Saved | false |
History 4
- 553 Change Default of PlaceVersion from to
- 486 Change ThreadSafety of PlaceVersion from ReadOnly to ReadSafe
- 462 Change ThreadSafety of PlaceVersion from to ReadOnly
- 120 Add PlaceVersion
PrivateServerId
Type | Default | |
---|---|---|
string |
This property describes the private server ID of the server, if the server is a private server.
If the server is not a private server, then this property will be an empty string.
Private servers
Private servers refer to the following:
- Private servers that users can purchase from the games page
- Reserved servers, private servers created by the developer using TeleportService:ReserveServer()
PrivateServerId vs JobId
The PrivateServerId of a server is different from the DataModel.JobId. The JobId is the unique identifier of the current server instance.
Private servers (private or reserved servers) can have multiple server instances associated with them over time. This is because, although only one server instance can be running at once for a private server, new server instances can open and close as players join and leave the game. For example, no server instance is running when nobody is playing in the server. The PrivateServerId will be consistent across all of these server instances, and the DataModel.JobId will be unique for each one.
See also:
- DataModel.PrivateServerOwnerId, a property describing the owner of a private server
- TeleportService:ReserveServer(), a function which creates a reserved server
Thread safety | ReadSafe |
---|---|
Category | Data |
Loaded/Saved | false/true |
History 4
- 553 Change Default of PrivateServerId from to
- 486 Change ThreadSafety of PrivateServerId from ReadOnly to ReadSafe
- 462 Change ThreadSafety of PrivateServerId from to ReadOnly
- 352 Add PrivateServerId
PrivateServerOwnerId
Type | Default | |
---|---|---|
int64 |
This property describes the UserId of the Player that owns the private server if the server is private.
If the server is a standard or reserved server then this property will be set to 0.
This property could be used to identify if a Player is the owner of the private server, for example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
See also:
- DataModel.PrivateServerId, a property describing the unique ID of private and reserved servers
Thread safety | ReadSafe |
---|---|
Category | Data |
Loaded/Saved | false/true |
History 4
- 553 Change Default of PrivateServerOwnerId from to
- 486 Change ThreadSafety of PrivateServerOwnerId from ReadOnly to ReadSafe
- 462 Change ThreadSafety of PrivateServerOwnerId from to ReadOnly
- 352 Add PrivateServerOwnerId
ReportInGoogleAnalytics
Parameters (4) | Default | |
---|---|---|
category | string | |
action | string | custom |
label | string | none |
value | int | 0 |
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 573 Change ReturnType of ReportInGoogleAnalytics from void to null
- 462 Change ThreadSafety of ReportInGoogleAnalytics from to Unsafe
- 170 Add ReportInGoogleAnalytics
SavePlace
Parameters (1) | Default | |
---|---|---|
saveFilter | SaveFilter | SaveAll |
Returns (1) | ||
bool |
This function was used by an ancient data persistence method to save the current place.
Note:
- In order for this method to work the save place API has to be enabled for the current place.
Thread safety | Unsafe |
---|
History 9
- 462 Change ThreadSafety of SavePlace from to Unsafe
- 273 Change Tags of SavePlace from [Yields] to [Yields, Deprecated]
- 272 Change Tags of SavePlace from [Yields, Deprecated] to [Yields]
- 273 Change Tags of SavePlace from [Yields] to [Yields, Deprecated]
- 138 Change ReturnType of SavePlace from Tuple to bool
- 118 Change Tags of SavePlace from [] to [Yields]
- 118 Change Security of SavePlace from RobloxPlaceSecurity to None
- 118 Change ReturnType of SavePlace from void to Tuple
- 115 Add SavePlace
ScreenshotReady
Parameters (1) | |
---|---|
path | string |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 6
- 462 Change ThreadSafety of ScreenshotReady from to Unsafe
- 287 Add ScreenshotReady
- 285 Remove ScreenshotReady
- 286 Add ScreenshotReady
- 285 Remove ScreenshotReady
- 286 Add ScreenshotReady
ScreenshotSavedToAlbum
Parameters (3) | |
---|---|
filename | string |
success | bool |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
SetFastFlagForTesting
Parameters (2) | ||
---|---|---|
name | string | |
newValue | bool | |
Returns (1) | ||
bool |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of SetFastFlagForTesting from to Unsafe
- 412 Add SetFastFlagForTesting
SetFastIntForTesting
Parameters (2) | ||
---|---|---|
name | string | |
newValue | int | |
Returns (1) | ||
int |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of SetFastIntForTesting from to Unsafe
- 412 Add SetFastIntForTesting
SetFastStringForTesting
Parameters (2) | ||
---|---|---|
name | string | |
newValue | string | |
Returns (1) | ||
string |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of SetFastStringForTesting from to Unsafe
- 412 Add SetFastStringForTesting
SetFlagVersion
Parameters (2) | ||
---|---|---|
name | string | |
version | int | |
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 573 Change ReturnType of SetFlagVersion from void to null
- 571 Add SetFlagVersion
SetIsLoaded
Parameters (2) | ||
---|---|---|
value | bool | |
placeSizeInBytes | int? | |
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 573 Change ReturnType of SetIsLoaded from void to null
- 568 Add SetIsLoaded
SetPlaceId
Parameters (1) | ||
---|---|---|
placeId | int64 | |
Returns (1) | ||
null |
This function sets the DataModel.PlaceId of the game instance to the given placeId.
Setting both DataModel.PlaceId and DataModel.GameId are
required to access DataStoreService when the place is unpublished,
for example a local .rbxl
file. See below for an example. Note that
gaining DataStoreService access from Studio requires the Enable
Studio Access to API Services setting from the Security panel in
Game Settings.
1 2 3 4 5 6 |
|
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 7
- 573 Change ReturnType of SetPlaceId from void to null
- 462 Change ThreadSafety of SetPlaceId from to Unsafe
- 349 Add SetPlaceId
- 311 Remove SetPlaceId
- 151 Change Security of SetPlaceId from security1 to PluginSecurity
- 150 Change Security of SetPlaceId from LocalUserSecurity to security1
- 47 Add SetPlaceId
SetUniverseId
Parameters (1) | ||
---|---|---|
universeId | int64 | |
Returns (1) | ||
null |
This function sets the DataModel.GameId of the current game instance to the given universeId. This is useful when testing local .rbxl files that have not been published to Roblox.
To access the DataStoreService in an unpublished place, both DataModel:SetUniverseId() and DataModel:SetPlaceId() must be set.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 5
- 573 Change ReturnType of SetUniverseId from void to null
- 462 Change ThreadSafety of SetUniverseId from to Unsafe
- 349 Add SetUniverseId
- 311 Remove SetUniverseId
- 173 Add SetUniverseId
Shutdown
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Security | LocalUserSecurity |
---|---|
Thread safety | Unsafe |
UniverseMetadataLoaded
Parameters (0) | ||
---|---|---|
No parameters. |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
Workspace
Type | Default | |
---|---|---|
Workspace |
The Workspace property is a reference to the Workspace service.
This property will always point to the Workspace and will never be nil.
The Workspace can also be accessed using the global variable
workspace
and the ServiceProvider:GetService() function. For
example:
1 2 3 |
|
Thread safety | ReadSafe |
---|---|
Category | Data |
Loaded/Saved | false |
lighting
Type | Default | |
---|---|---|
Instance |
This property was once used to get the game's Lighting service.
Thread safety | ReadSafe |
---|---|
Category | Data |
Loaded/Saved | false |
workspace
Type | Default | |
---|---|---|
Workspace |
Thread safety | ReadSafe |
---|---|
Category | Data |
Loaded/Saved | false |
Removed members 44
ActivateExperimentalFeatures
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
void |
Security | RobloxSecurity |
---|
History 2
AddStat
Parameters (2) | ||
---|---|---|
displayName | string | |
stat | string | |
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
ClearContent
Parameters (1) | ||
---|---|---|
resettingSimulation | bool | |
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
History 2
- 217 Remove ClearContent
- 47 Add ClearContent
ClearMessage
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
History 4
- 273 Remove ClearMessage
- 272 Add ClearMessage
- 273 Remove ClearMessage
- 47 Add ClearMessage
CreatePlace
Parameters (2) | ||
---|---|---|
placeName | string | |
templatePlaceID | int | |
Returns (1) | ||
int |
History 2
- 153 Remove CreatePlace
- 131 Add CreatePlace
FinishShutdown
Parameters (1) | ||
---|---|---|
localSave | bool | |
Returns (1) | ||
void |
Security | RobloxScriptSecurity |
---|
History 2
- 310 Remove FinishShutdown
- 47 Add FinishShutdown
GetJobIntervalPeakFraction
Parameters (2) | ||
---|---|---|
jobname | string | |
greaterThan | double | |
Returns (1) | ||
double |
Security | PluginSecurity |
---|
History 3
- 454 Remove GetJobIntervalPeakFraction
- 152 Change Security of GetJobIntervalPeakFraction from LocalUserSecurity to PluginSecurity
- 47 Add GetJobIntervalPeakFraction
GetJobTimePeakFraction
Parameters (2) | ||
---|---|---|
jobname | string | |
greaterThan | double | |
Returns (1) | ||
double |
Security | PluginSecurity |
---|
History 3
- 454 Remove GetJobTimePeakFraction
- 152 Change Security of GetJobTimePeakFraction from LocalUserSecurity to PluginSecurity
- 47 Add GetJobTimePeakFraction
GetJobsExtendedStats
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Array |
Security | PluginSecurity |
---|
History 3
- 454 Remove GetJobsExtendedStats
- 152 Change Security of GetJobsExtendedStats from LocalUserSecurity to PluginSecurity
- 47 Add GetJobsExtendedStats
HttpGet
Parameters (4) | Default | |
---|---|---|
url | string | |
synchronous | bool | false |
httpRequestType | HttpRequestType | Default |
doNotAllowDiabolicalMode | bool | false |
Returns (1) | ||
string |
Security | RobloxScriptSecurity |
---|
History 6
- 331 Remove HttpGet
- 298 Change Parameters of HttpGet from (url: string, synchronous: bool = false) to (url: string, synchronous: bool = false, httpRequestType: HttpRequestType = Default, doNotAllowDiabolicalMode: bool = false)
- 85 Change Security of HttpGet from RobloxSecurity to RobloxScriptSecurity
- 84 Change Security of HttpGet from RobloxScriptSecurity to RobloxSecurity
- 83 Change Security of HttpGet from RobloxSecurity to RobloxScriptSecurity
- 47 Add HttpGet
HttpPost
Parameters (6) | Default | |
---|---|---|
url | string | |
data | string | |
synchronous | bool | false |
contentType | string | */* |
httpRequestType | HttpRequestType | Default |
doNotAllowDiabolicalMode | bool | false |
Returns (1) | ||
string |
Security | RobloxScriptSecurity |
---|
History 7
- 331 Remove HttpPost
- 298 Change Parameters of HttpPost from (url: string, data: string, synchronous: bool = false, contentType: string = */*) to (url: string, data: string, synchronous: bool = false, contentType: string = */*, httpRequestType: HttpRequestType = Default, doNotAllowDiabolicalMode: bool = false)
- 135 Change Parameters of HttpPost from (url: string, data: string, synchronous: bool = false) to (url: string, data: string, synchronous: bool = false, contentType: string = */*)
- 85 Change Security of HttpPost from RobloxSecurity to RobloxScriptSecurity
- 84 Change Security of HttpPost from RobloxScriptSecurity to RobloxSecurity
- 83 Change Security of HttpPost from RobloxSecurity to RobloxScriptSecurity
- 47 Add HttpPost
IsPersonalServer
Type | Default | |
---|---|---|
bool |
Security | RobloxScriptSecurity |
---|---|
Category | |
Loaded/Saved | false |
History 5
- 273 Remove IsPersonalServer
- 272 Add IsPersonalServer
- 273 Remove IsPersonalServer
- 48 Change Tags of IsPersonalServer from [Hidden] to []
- 47 Add IsPersonalServer
LoadGame
Parameters (1) | ||
---|---|---|
assetID | int | |
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
LoadPlugins
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
void |
Security | RobloxSecurity |
---|
History 2
- 310 Remove LoadPlugins
- 47 Add LoadPlugins
LoadWorld
Parameters (1) | ||
---|---|---|
assetID | int | |
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
LocalSaveEnabled
Type | Default | |
---|---|---|
bool |
Security | RobloxScriptSecurity |
---|---|
Category | |
Loaded/Saved | false |
History 4
- 273 Remove LocalSaveEnabled
- 272 Add LocalSaveEnabled
- 273 Remove LocalSaveEnabled
- 47 Add LocalSaveEnabled
RemoveStat
Parameters (1) | ||
---|---|---|
stat | string | |
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
History 4
- 310 Remove RemoveStat
- 91 Add RemoveStat
- 90 Remove RemoveStat
- 91 Add RemoveStat
ReportMeasurement
Parameters (5) | ||
---|---|---|
id | string | |
key1 | string | |
value1 | string | |
key2 | string | |
value2 | string | |
Returns (1) | ||
void |
Security | RobloxScriptSecurity |
---|
History 2
- 310 Remove ReportMeasurement
- 47 Add ReportMeasurement
RequestShutdown
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
bool |
Security | RobloxScriptSecurity |
---|
History 3
- 310 Remove RequestShutdown
- 131 Change Tags of RequestShutdown from [] to [NoYield]
- 47 Add RequestShutdown
Save
Parameters (1) | ||
---|---|---|
url | Content | |
Returns (1) | ||
void |
Security | RobloxSecurity |
---|
SavePlaceFinished
Parameters (2) | |
---|---|
succeeded | bool |
errorString | string |
Security | RobloxPlaceSecurity |
---|
History 2
- 118 Remove SavePlaceFinished
- 115 Add SavePlaceFinished
SaveStats
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
SaveToRoblox
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
bool |
Security | RobloxScriptSecurity |
---|
History 2
- 310 Remove SaveToRoblox
- 47 Add SaveToRoblox
ServerSave
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
History 2
- 310 Remove ServerSave
- 47 Add ServerSave
SetCreatorID
Parameters (2) | ||
---|---|---|
creatorID | int | |
creatorType | CreatorType | |
Returns (1) | ||
void |
Security | PluginSecurity |
---|
History 3
- 311 Remove SetCreatorID
- 151 Change Security of SetCreatorID from LocalUserSecurity to PluginSecurity
- 47 Add SetCreatorID
SetCreatorId
Parameters (2) | ||
---|---|---|
creatorId | int | |
creatorType | CreatorType | |
Returns (1) | ||
void |
Security | PluginSecurity |
---|
History 3
- 311 Remove SetCreatorId
- 151 Change Security of SetCreatorId from LocalUserSecurity to PluginSecurity
- 47 Add SetCreatorId
SetGameInstanceId
Parameters (1) | ||
---|---|---|
instanceID | string | |
Returns (1) | ||
void |
Security | PluginSecurity |
---|
History 2
- 238 Remove SetGameInstanceId
- 236 Add SetGameInstanceId
SetGearSettings
Parameters (2) | ||
---|---|---|
genreRestriction | GearGenreSetting | |
allowedGenres | int | |
Returns (1) | ||
void |
Security | PluginSecurity |
---|
History 3
- 311 Remove SetGearSettings
- 151 Change Security of SetGearSettings from LocalUserSecurity to PluginSecurity
- 47 Add SetGearSettings
SetGenre
Parameters (1) | ||
---|---|---|
genre | Genre | |
Returns (1) | ||
void |
Security | PluginSecurity |
---|
SetJobsExtendedStatsWindow
Parameters (1) | ||
---|---|---|
seconds | double | |
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
History 2
SetMessage
Parameters (1) | ||
---|---|---|
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
History 4
- 273 Remove SetMessage
- 272 Add SetMessage
- 273 Remove SetMessage
- 47 Add SetMessage
SetMessageBrickCount
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
History 4
- 273 Remove SetMessageBrickCount
- 272 Add SetMessageBrickCount
- 273 Remove SetMessageBrickCount
- 47 Add SetMessageBrickCount
SetPlaceID
Parameters (2) | Default | |
---|---|---|
placeID | int | |
robloxPlace | bool | false |
Returns (1) | ||
void |
Security | PluginSecurity |
---|
History 4
- 311 Remove SetPlaceID
- 151 Change Security of SetPlaceID from security1 to PluginSecurity
- 150 Change Security of SetPlaceID from LocalUserSecurity to security1
- 47 Add SetPlaceID
SetPlaceVersion
Parameters (1) | ||
---|---|---|
placeId | int | |
Returns (1) | ||
void |
Security | PluginSecurity |
---|
History 3
- 311 Remove SetPlaceVersion
- 151 Change Security of SetPlaceVersion from LocalUserSecurity to PluginSecurity
- 120 Add SetPlaceVersion
SetRemoteBuildMode
Parameters (1) | ||
---|---|---|
buildModeEnabled | bool | |
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
History 4
- 273 Remove SetRemoteBuildMode
- 272 Add SetRemoteBuildMode
- 273 Remove SetRemoteBuildMode
- 47 Add SetRemoteBuildMode
SetScreenshotInfo
Parameters (1) | ||
---|---|---|
info | string | |
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
History 2
- 311 Remove SetScreenshotInfo
- 47 Add SetScreenshotInfo
SetServerSaveUrl
Parameters (1) | ||
---|---|---|
url | string | |
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
History 2
- 310 Remove SetServerSaveUrl
- 47 Add SetServerSaveUrl
SetVIPServerId
Parameters (1) | ||
---|---|---|
newId | string | |
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
History 2
- 310 Remove SetVIPServerId
- 181 Add SetVIPServerId
SetVIPServerOwnerId
Parameters (1) | ||
---|---|---|
newId | int | |
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
History 2
- 310 Remove SetVIPServerOwnerId
- 210 Add SetVIPServerOwnerId
SetVideoInfo
Parameters (1) | ||
---|---|---|
info | string | |
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
History 2
- 311 Remove SetVideoInfo
- 47 Add SetVideoInfo
ToggleTools
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
History 4
- 273 Remove ToggleTools
- 272 Add ToggleTools
- 273 Remove ToggleTools
- 47 Add ToggleTools
get
Parameters (1) | ||
---|---|---|
url | Content | |
Returns (1) | ||
Objects |
Security | LocalUserSecurity |
---|