Testing Modes

Testing games is critical for success. Because of the underlying client-server model in all Roblox games, it’s important that you test your game in various modes before publishing it to the public.

Play Solo Mode

The Play and Play Here modes in Studio are collectively known as “play solo” mode. Play inserts your avatar into the game at the SpawnLocation while Play Here inserts your avatar at the current camera position.

When testing in these modes, Studio runs two separate simulations (one client and one server). This gives you a more accurate impression of how the game will execute in production, for instance:

  • LocalScripts will run on the client data model and obey client-side rules — they will not create objects in the overall game world, etc.
  • Script will run on the server data model and they will not affect client-side instances like a player’s local ScreenGui.

Client/Server Toggle

To toggle between Client and Server modes, click the Client/Server Toggle button while simulating:

The following sections describe visual differences between client and server modes.

Simulation window

  • Client mode - The simulation's window is surrounded by a blue border. The avatar is inserted and the simulation uses in-game controls and camera.
  • Server mode - The simulation's window is surrounded by a green border with a free-floating camera. The avatar is inserted but not under your control.

Explorer Window

  • Client Mode - In the Explorer window object hierarchy, only client-side objects will be present. For instance, you will not see items that you placed inside ServerStorage or ServerScriptService.

  • Server Mode - The expected server-side objects will appear in the Explorer window hierarchy, including objects added to ServerStorage, scripts you placed in ServerScriptService, etc.

Output Window

Client mode: Output messages tagged in blue.
Client mode: Output messages tagged in blue.
Server mode: Output messages tagged in green.
Server mode: Output messages tagged in green.

Run Mode

Run mode is similar to Play SoloServer mode, but it does not insert your player avatar into the game. The simulation begins at the current camera position and you can navigate around the game world using the standard Studio camera controls.

Player Emulator

Various localization and game content policies can be tested through the Player Emulator.

  1. Select the Test tab in Studio.

  2. In the Emulation section, click the Player button.

  3. Once the emulator window is open, toggle on Enable Test Profile to enable emulation while playtesting. Note that emulation will remain as toggled (enabled or disabled) even if you close the window.

  4. Lower down in the emulator window, the following options are available:

    • Locale - Lets you emulate a language locale while playtesting. Default is set to your Roblox locale.
    • Region - Lets you emulate a player's country/region while playtesting; this selection may impact policy switches pertaining to the next three options. Default is set to your Roblox country/region.
    • ArePaidRandomItemsRestricted - Emulates whether a country/region restricts paid random item generators. If you're implementing virtual items, you should check the ArePaidRandomItemsRestricted boolean of PolicyService:GetPolicyInfoForPlayerAsync() to determine if such items are allowed.
    • IsSubjectToChinaPolicies - See here for details.
    • AllowedExternalLinkReferences - Emulates whether external link references are allowed in a country/region. If you're including in-game links to Discord, Facebook, Twitch, or YouTube, you should check the AllowedExternalLinkReferences array of PolicyService:GetPolicyInfoForPlayerAsync() to determine which link types are allowed.
  5. Start playtesting in a Play Solo mode to test the chosen settings.

Multi-Client Simulation

Using the Server/Players options in the Test tab, you can launch multiple sessions of Studio, one acting as the server and each other acting as a client.

  1. Select the Test tab in Studio.

  2. In the Clients and Servers section, make sure Local Server is selected in the upper box.

  3. In the next box, select the number of player sessions to test (usually “1 Player” is fine).

  4. Press the Start button to begin the client-server simulation.

Once the player and server sessions of Studio have started up, you can launch additional player sessions as follows:

  • From the same Clients and Servers menu in any of the Studio sessions, select how many new sessions you'd like to add.
  • Press the Start button to launch the additional player sessions.

Team Create

If you’re working on a game with others in Team Create mode, you can test as follows:

  1. Select the Test tab in Studio.

  2. In the Clients and Servers section, select Team Test in the upper box.

  3. Press the Start button to publish the current state of the game and create a new Studio session with your character inserted. Other creators can join by pressing Join from the Test tab.

Only one team test session can run at any given time. To close a session, click the Shutdown Server button from the Test tab. This shuts down the simulation and kicks all testers out.