Skip to content
Roblox API Reference

StudioTestService

Service allowing plugins to automate and customize Test and Run mode testing.
  • Not creatable
  • Not replicated
  • Service
Memory category
Instances
Own members
9
Inherited members
75
Subclasses
0
Siblings
608

Properties24

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byStudioTestService1

Property categoryData

  • StudioTestService.EditModeActive: boolean = true
    Plugin-facing. Indicates whether the session is the idle edit DataModel with no Studio test session running.
    • Plugin security

Methods50

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
Defined byStudioTestService8
  • StudioTestService:AddPlayers(numPlayers: number)
    Adds additional simulated clients to the running multiplayer test session.
    Parameters
    ParameterDescription
    numPlayers: number
    The number of additional client DataModels to add. Must be between 1 and 8.
  • StudioTestService:CanLeaveTest(): boolean
    Returns whether the calling client DataModel can disconnect from the test.
    Returns
    TypeDescription
    boolean
    true if the client can leave, false otherwise.
  • StudioTestService:EndTest(value: any)
    Ends the current Studio test session from the server DataModel.
    Parameters
    ParameterDescription
    value: any
  • StudioTestService:ExecuteMultiplayerTestAsync(numPlayers: number,args: any,): any
    Launches a multiplayer test session and yields until it completes.
    • Yields
    • Plugin security
    Parameters
    ParameterDescription
    numPlayers: number
    The number of client DataModels to create. Must be between 1 and 8.
    args: any
    An optional Roblox-serializable value forwarded to scripts inside the test session.
    Returns
    TypeDescription
    any
    The value passed to StudioTestService:EndTest().
  • StudioTestService:ExecutePlayModeAsync(args: any): any
    Starts a solo Test session and yields until it ends.
    • Yields
    • Plugin security
    Parameters
    ParameterDescription
    args: any
    Argument passed to the test session, or nil.
    Returns
    TypeDescription
    any
    Value passed from StudioTestService:EndTest(), or nil.
  • StudioTestService:ExecuteRunModeAsync(args: any): any
    Starts a Run test session and yields until it ends.
    • Yields
    • Plugin security
    Parameters
    ParameterDescription
    args: any
    Argument passed to the test session, or nil.
    Returns
    TypeDescription
    any
    Value passed from StudioTestService:EndTest(), or nil.
  • StudioTestService:GetTestArgs(): any
    Returns the argument passed to the method that started the current test session.
    Returns
    TypeDescription
    any
    Arguments passed to the test, or nil.
  • StudioTestService:LeaveTest()
    Disconnects the calling client from the active multiplayer test.

Events10

Inherited fromObject1
Inherited fromInstance9