Lesson 7 of 7
Playtesting: Play, Run, Team Test, server and client views
How to playtest a Roblox game in Studio with Beacon Yard at m03-coins-count: Play, Run, Server and Clients, Team Test, the client and server views, Output context, pause, device and network simulation, and the game's own test suite.
By the end you can
- Choose between Test, Test Here, Run, Server and Clients and Team Test for the thing you want to check
- Read the blue client view and the green server view, and filter Output by context
- Run Beacon Yard's test suite through the server's bindable and read its PASS and FAIL lines
Before this: The Studio tour: panels, camera, shortcuts, The data model: every service and where things live
Step 1 of 9
No character, no Coins counter
You open m03-coins-count, press the wrong test button, and the walled yard appears with six glowing coins hovering above its pads. Nothing else happens. No avatar drops onto the spawn, no player list shows a Coins counter, and you cannot pick up a single coin. You file a bug against CoinService.
The script is fine. You pressed Run, which simulates the world without inserting a player. The right button was Play. Studio has several ways to start a test, and each answers a different question. Choosing the wrong one costs an hour of looking at the wrong code.

Select a numbered pin, or a row below, to read what it marks.
A solo Play test in client view: blue edge, your character and the command bar below.
On m03-coins-count you press Run, and neither your avatar nor the Coins leaderstats entry appears. Why?
Press 1 to 4 to choose, Enter to check.
Step 2 of 9
The test modes
The mode menu sits next to the Play button on the left of the mezzanine1. The docs call the first mode Test, but its button says Play, so this course says Play for it:
| Mode | Shortcut | What it does |
|---|---|---|
| Play (the docs call it Test) | F5 | Starts the game and inserts your avatar at a SpawnLocation, or near (0, 100, 0) if there is none |
| Test Here | none | Inserts your avatar in front of the editor camera |
| Run | F8 | Simulates without an avatar, starting at the camera |
| Server & Clients | F7 | Opens separate windows for a server and one to eight clients |
| Team Test | none | A session your collaborators join from their own Studio |
Once a test is running, the same bar shows Pause, Stop (Shift+F5) and, in the solo modes, the Client/Server toggle. Stop resets every instance to how it was before the test. At m03-coins-count, the walls and coin pads live in default.project.json, so they stay in edit mode after Stop, while the six floating Coin balls that CoinService created at runtime disappear. (From m06-drone-wrench onward, MapBuilder creates the entire yard in code, so Stop removes Yard too.)
Beacon Yard's spawn is a SpawnLocation named Spawn at (−30, 3, 0), with Duration 0, so there is no spawn force field. Play puts you on the west side of the yard.
Match each question on m03-coins-count to the best mode.
Step 3 of 9
Blue client, green server
In a solo test Studio runs two simulations at once, a server and a client, and the toggle switches which one you look at1.
- Client mode: a blue border around the viewport. You control your character, as a player would.
- Server mode: a green border and a free camera. Your character is not under your control. You can fly around, select objects and read their properties as the server has them.
Explorer changes with the toggle. In client view it lists what the client has, such as the copy of StarterPlayerScripts. In server view it shows ServerScriptService, which clients never receive. At m03-coins-count, CoinService creates each Coin ball on the server and replicates it down, so both views show Workspace.Yard.CoinPads.Pad1.Coin, while ServerScriptService.Server exists only in the green server view.
Output labels each line Client (blue) or Server (green) once you turn on Show Context in its options, and a filter can hide one side.
The mode menu, Play, the blue client border, the toggle to the green server view, Output context and Stop.
Transcript
- 0:01 Play, Play Here, and Run are the solo modes. Team Test is on this menu. This clip does not start it.
- 0:06 Play inserts your avatar. The blue border is the client.
- 0:16 The green border is the server. The yard exists because the server built it.
- 0:22 Output can filter and color lines by client or server.
- 0:26 Stop restores the place. Yard was never saved into the file.
| In the picture | In Roblox |
|---|---|
| Starting the rehearsal | Pressing Play (F5), which copies the edit-mode place into a live test |
| Props added during the show | Runtime instances such as Coin balls spawned by CoinService |
| Dropping the curtain at Stop | Pressing Shift+F5, which discards the test copy and restores edit mode |
A Play session is a dress rehearsal on a temporary copy of the stage: props created during the show vanish when the curtain drops at Stop.
Think of it as A dress rehearsal on a temporary stage
In client view you cannot find ServerScriptService.Server in Explorer. What should you do first?
Press 1 to 4 to choose, Enter to check.
Step 4 of 9
Two stages in one window
Studio shows both views in one window, which makes it look as if the blue client and green server share one stage. They do not share memory.
Both sidesRemember: Playtesting in Studio is a dress rehearsal on a temporary stage.
Where does it break?“A dress rehearsal on a temporary stage” is a good picture of playtesting in studio. Where does it stop being true?
It breaks here. Studio shows both the blue client view and the green server view in one window, which looks like one shared stage, but they are two separate simulations and client edits never travel up to the server.
The true model. Solo Play runs an independent server simulation and client simulation in memory. The server replicates changes down to the client; edits made on the client stay on that client, and Stop discards both simulations.
In client view you run workspace.Yard.Base.Color = Color3.new(1, 0, 0) in the command bar. You toggle to the server view. What colour is the base there?
Press 1 to 4 to choose, Enter to check.
Step 5 of 9
Reading Output during a test
The Output window2 is where a test talks back. Three habits save time:
- Turn on Show Context and Show Source in its options, so each line says which side printed it and from which script and line.
- Use the type filter to see only Error or only Warning.
- Ctrl+K (Cmd+K on a Mac) clears the log. It does not stop the test.
On a clean m03-coins-count place, Play produces no errors at all. A red error line means a real problem you should read before changing anything else.
Pause freezes physics and animation but not everything. Callbacks on RunService.Heartbeat, PreRender and RenderStepped keep firing, so any script that moves a part on Heartbeat (such as enemies you build in later milestones) can keep stepping while physics looks frozen. Step Forward advances 1/60 of a second.
You press Pause during a test, and an object moved by a RunService.Heartbeat script keeps stepping forward. Why?
Press 1 to 4 to choose, Enter to check.
Step 6 of 9
Two players and teammates
Server & Clients (F7) opens one window as the server and a window for each client, up to eight1. It is the fast way to check what another player sees: collect a coin in one client and watch the pad empty in the other. Team Test is the same idea with real collaborators in a Team Create place; only one team test can run at a time, and End Session closes it for everyone.
A multi-client test has a different failure mode from a solo one. Code that works in solo Play can fail with two players if the server assumes only one player is present. Test with two clients before you call a multiplayer feature done.
Open Device Simulator from the Test menu. Pick a device in the toolbar above the viewport to test screen size and input3. To test latency, jitter and packet loss, open Network in the same toolbar, select a profile and click Apply4. Roblox removed the beta toggle in its October 16 release update.
Ways to test a Roblox game
| Option | What it is | When pros pick it | Trade-offs |
|---|---|---|---|
| Manual playtest in Studio | Press Play, Run or Server & Clients and look. | Anything about feel, layout or what a player sees; the first check on every change. | Only as repeatable as your memory; easy to skip the case that breaks. |
| Scripted in-place tests | A suite that runs inside Play and prints PASS or FAIL, as Beacon Yard's RunGameTests does. | Rules that must keep holding: payouts, ranges, respawn timers. | Needs a running Studio session, so CI cannot run it by itself. |
| Unit tests with Jest-Lua | Pure functions tested outside the engine, with describe, it and expect. | Math and state machines that do not need a place, run in CI on every push. | Cannot cover engine behaviour such as replication or physics. |
| Open Cloud Luau Execution | Runs Luau in a real Roblox server from a script or CI job, with no Studio window. | Automated checks against a real place on every merge. | Needs a published place, an API key and setup; a later module covers it. |
You want to check that a second player sees a coin vanish when you collect it. Which mode?
Press 1 to 4 to choose, Enter to check.
Step 7 of 9
Beacon Yard's own tests
The game ships a test suite in tests/, mapped to ReplicatedStorage.GameTests. Its entry returns a function and does nothing until something calls it. The server entry at m03-coins-count hands it to a bindable the command bar can invoke:
local testModule = ReplicatedStorage:FindFirstChild("GameTests")
if testModule and testModule:IsA("ModuleScript") then
local runTests = require(testModule) :: () -> ()
local runner = Instance.new("BindableFunction")
runner.Name = "RunGameTests"
runner.Parent = ServerScriptService
function runner.OnInvoke(): string
runTests()
return "ran"
Why a bindable instead of requiring the suite from the command bar? The server Script and the command bar each have their own require cache. Requiring DataService or CoinService from the command bar would run each module a second time and give you a fresh, empty copy with no players in it. Because the server Script requires GameTests itself and exposes ServerScriptService.RunGameTests, invoking the bindable runs the suite inside the server Script's live cache:
At m03-coins-count, each check prints TEST PASS <name> or TEST FAIL <name>: <reason>, and the suite ends with TEST SUITE DONE. The test-only attribute TestCoinRespawnSeconds on workspace shortens the coin respawn delay for the length of a test run; the game itself never sets it. (Later milestones add a client test suite and more test attributes as new systems arrive.)
Which command runs the server suite?
Press 1 to 4 to choose, Enter to check.
Step 8 of 9
Try it
Build along
src/server/init.server.luautests/README.md
Press F5, wait for your avatar and the six coins to appear, look around, then press Shift+F5.
You should see The border is blue, you stand on the west side of the yard, six glowing coins float above the pads and Coins appears in the player list; after Shift+F5 the floating coins disappear while the static walls and pads stay.
Press F5 again and click the Client/Server toggle to switch to the server.
You should see The border turns green, the camera is free, Workspace.Yard.CoinPads holds the six Coin balls, and ServerScriptService is visible in Explorer.
With Show Context on, switch the command bar to the server and run
game.ServerScriptService.RunGameTests:Invoke(), then press Stop.You should see Output shows TEST PASS lines and ends with TEST SUITE DONE.
Level 1, Apprentice
Challenge
Play, read one line with its context label, and Stop.
- Start from
- m03-coins-count, Rojo connected
Done means
- You saw the blue border and your character at the west spawn
- Output showed at least one line with its context label
- Stop removed the runtime Coin balls while leaving the static Yard walls and pads in edit mode
Meet the criteria above, then record your own result. No test grades this check.
You run the level 3 check in Run mode instead of Play. Which line do you see?
Press 1 to 4 to choose, Enter to check.
Level 2, Builder
Challenge
Collect a coin in client view, toggle to the green server view while the pad is waiting to respawn, watch the new coin appear, then press Stop.
- Start from
- m03-coins-count, Rojo connected
Done means
- You collected a coin in blue client view and saw Coins rise by 5 in the player list
- You toggled to green server view and saw ServerScriptService plus the coin respawning on its pad after 4 seconds
- Stop restored edit mode with no floating coins left
Meet the criteria above, then record your own result. No test grades this check.
Level 3, Professional
Challenge
Mark the server during Play. For grading, add the lines to src/server/init.server.luau on m14-ship, straight after the WorldLook.start() line, which runs on every path (the file calls DataService.start() twice, once for the Lobby and once for the Yard, so do not use those). Put the RunService local next to the other service locals at the top. Sync, press Play rather than Run, and execute this in the server command bar:
game.ServerScriptService.RunGameTests:Invoke("playtesting")
It prints TEST PASS playtesting_mode. On the stock game it prints TEST FAIL playtesting_mode, and in Run mode TEST FAIL playtesting_player.
- Start from
- The game at milestone m03 (download)
- Grade it
- To grade work from an earlier milestone, apply your challenge changes to a checkout based on
m14-ship, which includes the Course Runner. In Studio, press Play, then rungame.ServerScriptService.RunGameTests:Invoke("playtesting")in the server command bar. Copy the pass code from Output.
Done means
- src/server/init.server.luau sets workspace attribute PlaytestMode to Server while RunService:IsServer() is true
- The lines come before DataService.start()
- The check passes in Play and fails in Run mode
You put the PlaytestMode lines in a LocalScript instead of the server boot script. What does the check report?
Press 1 to 4 to choose, Enter to check.
Step 9 of 9
Recap
Retiring the analogy
You no longer need “a dress rehearsal on a temporary stage”. Solo Play runs an independent server simulation and client simulation in memory. The server replicates changes down to the client; edits made on the client stay on that client, and Stop discards both simulations.
Recap
- Play (F5) inserts you, Run (F8) inserts nobody, Server & Clients (F7) gives each player a window and Team Test brings collaborators; Shift+F5 stops and resets the place.
- Blue is the client view and green the server view; Output with Show Context says which side printed, and Pause does not stop Heartbeat.
- Run Beacon Yard's suite with the RunGameTests bindable from the server command bar, because the command bar has its own require cache.
Playtesting in Studio is a dress rehearsal on a temporary stage, until studio shows both the blue client view and the green server view in one window, which looks like one shared stage, but they are two separate simulations and client edits never travel up to the server.
Queued for review
- On m03-coins-count you press Run, and neither your avatar nor the Coins leaderstats entry appears. Why?
- In client view you cannot find ServerScriptService.Server in Explorer. What should you do first?
- In client view you run workspace.Yard.Base.Color = Color3.new(1, 0, 0) in the command bar. You toggle to the server view. What colour is the base there?
- Which command runs the server suite?
Next Luau basics, part 1: Luau-specific text, decisions and pcall