Skip to content
Roblox API Reference

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.
  • Not creatable
Memory category
Instances
Own members
75
Inherited members
83
Subclasses
0
Siblings
2

Properties47

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byDataModel24

Property categoryData

  • DataModel.IsSFFlagsLoaded: boolean
    • Hidden
    • Read only
    • Roblox script security
  • DataModel.MatchmakingType: Enum.MatchmakingType
    Represents how players in the server are handled by matchmaking.
    • Read only
    • Save only
  • DataModel.PrivateServerId: string
    Describes the private server ID of the server, if the server is a private server or a reserved server.
    • Read only
    • Save only
  • DataModel.PrivateServerOwnerId: number
    Describes the UserId of the Player that owns the private server if the server is private.
    • Read only
    • Save only
  • DataModel.RunService: RunService
    A reference to the RunService service.
    • Read only
  • DataModel.Workspace: Workspace
    A reference to the Workspace service.
    • Read only
  • DataModel.VIPServerId: string
    Deprecated: This property has been deprecated. Use DataModel.PrivateServerId instead.
    A string that could identify the current server as a private server.
    • Deprecated
    • Hidden
    • Read only
    • Save only

    Use PrivateServerId instead.

  • DataModel.VIPServerOwnerId: number
    Deprecated: This property has been deprecated. Use DataModel.PrivateServerOwnerId instead.
    The UserId of the account who owns the private server.
    • Deprecated
    • Hidden
    • Read only
    • Save only

    Use PrivateServerOwnerId instead.

  • DataModel.lighting: Instance
    Deprecated: This item has been superseded by game:GetService("Lighting"), which should be used instead.
    Refers to the game's Lighting service.
    • Deprecated
    • Read only
  • DataModel.workspace: Workspace
    Deprecated: This deprecated property is a variant of DataModel.Workspace which should be used instead.
    • Deprecated
    • Read only

    Use Workspace instead.

Property categoryJobInfo

  • DataModel.JobId: string
    A unique identifier for the running game server instance.
    • Read only

Property categoryState

  • DataModel.CreatorId: number
    Describes the ID of the user or group that owns the place.
    • Read only
  • DataModel.CreatorType: Enum.CreatorType
    Describes the CreatorType of the place, whether the place is owned by a user or a group.
    • Read only
  • DataModel.Environment: string
    • Read only
    • Roblox script security
  • DataModel.ForceR15: boolean
    • Hidden
    • Not scriptable
    • Roblox engine security
  • DataModel.GameId: number
    Describes the ID of the experience that the place running on the server belongs to.
    • Read only
  • DataModel.Genre: Enum.Genre
    Not functional. Historically described the Genre of the place as set on the Roblox website.
    • Read only
  • DataModel.PlaceId: number
    Describes the ID of the place running on the server.
    • Read only
  • DataModel.PlaceVersion: number
    Describes the version of the place the server is running on.
    • Read only
  • DataModel.GameAvatarType: Enum.GameAvatarType
    • Deprecated
    • Hidden
    • Not scriptable
    • Roblox engine security
  • DataModel.GearGenreSetting: Enum.GearGenreSetting
    Deprecated: This property is deprecated and is no longer functional. It should not be used.
    Not functional. Historically described the gear permissions of the place as set on the Roblox website.
    • Deprecated
    • Read only
  • DataModel.IsPioneerBuild: boolean
    • Deprecated
    • Hidden
    • Read only
    • Roblox script security
  • DataModel.PioneerSource: Enum.PioneerSource
    • Deprecated
    • Hidden
    • Read only
    • Roblox script security
  • DataModel.R15CollisionType: Enum.R15CollisionType
    • Deprecated
    • Hidden
    • Not scriptable
    • Roblox engine security

Methods86

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Inherited fromServiceProvider4
Defined byDataModel40

Events24

Inherited fromObject1
Inherited fromInstance9
Inherited fromServiceProvider4
Defined byDataModel10

Callbacks1

Defined byDataModel1
  • DataModel.OnClose: () -> ...any
    Deprecated: This function is deprecated. It is recommended to use DataModel:BindToClose() instead.
    Invoked before the game is shut down. When this callback returns, or the timeout period is hit, the game finishes shutting down.
    • Deprecated
    Returns
    Type
    ...any

    Use BindToClose instead.