Change with evidence: Experiments, error reports and alerts

Test a change on part of your players with Roblox Experiments and per-player configs, read the result honestly, and watch a live game with Error Report, alerts and a custom dashboard, using Beacon Yard's Speed price.

Tool lesson, about 85 minutes, 16 steps

By the end you can

  • Write an experiment plan before the change, with a hypothesis, a goal metric, a guardrail and a decision rule
  • Run a per-player price experiment on Beacon Yard's Speed item with ConfigService and Roblox Experiments, and read its result by confidence interval
  • Find a new error in Error Report and set an alert and a custom dashboard that watch a live game for you

Before this: Analytics: funnels, economy events, retention, Monetization: products, passes, subscriptions, economy

1Forty coins or twenty-five?

A teammate opens a pull request that changes one line in Config.luau: SPEED_PRICE = 25 becomes SPEED_PRICE = 40. Their reason is the economy cell from the monetization lesson. A new player earns about 30 coins a round, so Speed costs less than one round and players buy it before they understand the shop.

They might be right. The question is how you would know. The usual first idea is to ship the change on Monday and compare this week's numbers with last week's. Last week, though, had a different number of new players, a weekend event and a bug fix in the crawler. A change in coins spent on Speed could come from any of those, or from nothing at all.

	SPEED_PRICE = 25,
	SHIELD_PRICE = 40,
Figure 1.1

Beacon Yard raises Speed to 40 coins on Monday, and Speed sales per player drop 20 percent compared with the week before. What can you conclude?

  1. Not much: the weeks differ in more ways than the price, so the drop could come from any of them
  2. The price caused the drop, because nothing else in the shop changed
  3. The price is now too high and should go back to 25
  4. Speed sales always fall on Mondays, so the price had no effect
Answer

Not much: the weeks differ in more ways than the price, so the drop could come from any of them. A before and after comparison mixes the change with everything else that moved. To see the price alone, both prices have to run at the same time, on players split at random.

Open this step in lesson mode · Link to this step · This confused me

2Split the players, not the weeks

An experiment, also called an A/B test, runs two versions of the game at the same time. Roblox puts each player at random into one group: the control gets today's value and a variant gets the new one. Everything else is the same for both, so a difference between the groups comes from the change1.

Stored dataExperiments (A/B tests) is a blind taste test: two cups, and a coin toss decides who drinks which.
In the pictureIn Roblox
The two cupsThe control value and the variant value of one config key
The coin tossRoblox enrolling each player at random on the first GetValue of a per-player snapshot
Asking the tasters which cup they preferredThe goal metric and its confidence interval after the planned days

See the whole analogy cast

An experiment is a blind taste test. Two cups look the same, and a coin toss decides who drinks which. Nobody picks their own cup, so the people in each group are alike, and the only real difference is what is in the cup.

Think of it as A blind taste test: two cups, and a coin toss decides who drinks which

Roblox has two kinds. An in-game experiment tests values of a configExperience configA value you change from the Creator Hub that running servers pick up without a restart.Think of it as a dial on the yard office wall that every live server can read. key, with up to two variants and one control. A matchmaking experiment tests matchmaking settings and needs no code. In-game experiments run between 14 and 60 days1.

You also choose how many players take part. The rollout is the share of all players who join the experiment, and the variant percentages split that share. Players outside the rollout get the control value and do not count. Roblox's advice, when in doubt, is one variant, one control, 50/50, on a large rollout.

A 40 percent rollout split 50/50All players flow into two boxes: 60 percent stay outside the experiment on the control value, 40 percent join it and split into a control group and a variant group of 20 percent each.All players100%Outside60%, control valueIn the rollout40%Control20%Variant20%
Figure 2.1. Only the two groups inside the rollout are compared.

A game has 2,000 players a day. The experiment has a 40 percent rollout split 50/50 between control and one variant. About how many players a day see the variant?

Answer

400 players. 40 percent of 2,000 is 800 players in the experiment, and half of them, 400, get the variant. The other 1,200 get the control value and are not counted.

Open this step in lesson mode · Link to this step · This confused me

3Write the plan before the change

The docs' first piece of advice is to start with a hypothesis: what you change, what you expect to happen, and why1. For the Speed argument:

Raising Speed from 25 to 40 coins makes new players play another round before they buy it, so they spend more coins in the shop overall, without making fewer of them come back the next day.

Every experiment then needs four things written down before it starts.

PartWhat it isBeacon Yard
VariantThe one value you changespeed_price 40 against a control of 25
Goal metricThe single number that decidesAverage coin sink per player, filtered to the Speed SKU
GuardrailA number that must not get worseD1 retention
Decision dateWhen you read it, and not beforeThe planned end, 14 days after the start

The goal metric comes from events Beacon Yard already logs. ShopService sends an economy sink event with the SKU Speed for every purchase, and an in-game experiment can turn that into a custom metric: an economy metric on Coins, average sink per player, filtered to one item SKU. The docs use almost exactly this example, a speed boost price cut, to explain custom metrics. Custom metrics can only use events that already have data, and they cannot change once the experiment starts.

Match each line of the Speed experiment plan to its role.

  1. Speed at 40 coins for half the players
  2. Average coins spent on the Speed SKU per player
  3. D1 retention must not fall
  4. Read the result after 14 days
Answer

Speed at 40 coins for half the players: Variant; Average coins spent on the Speed SKU per player: Goal metric; D1 retention must not fall: Guardrail; Read the result after 14 days: Decision date. The variant is the change. The goal metric decides whether it worked. The guardrail is what you refuse to sacrifice for it. The decision date stops you from reading noise early.

Open this step in lesson mode · Link to this step · This confused me

4A value for this player, read at the shop

In-game experiments are configs underneath. The live-ops lesson later uses ConfigService:GetConfigAsync() for the Scrap Rush flag, a value shared by the whole server. An experiment needs the per-player call, ConfigService:GetConfigForPlayerAsync(player), because GetConfigAsync() does not apply experiments1. ConfigService is server-only, and a first load can throw, so the call goes in pcall2.

Today the price is a constant. The shop prompt's handler only opens the panel, and buySpeed charges Config.SPEED_PRICE:

local function buySpeed(player: Player)
	local profile = DataService.get(player)
	if profile.speedOwned then
		feedback(player, "deny", "Already owned")
		return
	end
	if not DataService.trySpend(player, Config.SPEED_PRICE) then
Figure 4.1

The moment of enrolment matters. Calling GetValue on a player's snapshot enrolls that player, and every later call returns the same value. The docs advise waiting until the player reaches the feature: enrol everyone at join and half your "Speed buyers" are players who never walked to the shop, which waters the result down.

luau
-- In ShopService, called when the shop prompt is triggered.
local function speedPriceFor(player: Player): number
	local ok, raw = pcall(function()
		return ConfigService:GetConfigForPlayerAsync(player):GetValue("speed_price")
	end)
	return ExperimentPrice.speedPrice(if ok then raw else nil, Config.SPEED_PRICE, 10, 60)
end

This version enrolls every player on join. 1,000 players join during the experiment and 300 of them ever open the shop. Who is in the experiment?

Players.PlayerAdded:Connect(function(player)
	local snapshot = ConfigService:GetConfigForPlayerAsync(player)
	prices[player] = snapshot:GetValue("speed_price")
end)
  1. All 1,000, including 700 who never saw the price
  2. Only the 300 who opened the shop
  3. Nobody, because GetValue at join is ignored
  4. Only players who bought Speed
Answer

All 1,000, including 700 who never saw the price. The first GetValue enrolls the player. Reading it on join puts 700 players who never saw the price into both groups, so any effect on the 300 is diluted by people the change could not touch.

Open this step in lesson mode · Link to this step · This confused me

5The server owns the price

Two rules keep a price experiment safe.

First, a config value is input, even though your team typed it. A typo can turn 40 into "40", a slip can make it 400, and a missing key returns nil. The pure function speedPrice checks the type, rounds to whole coins and clamps the value between 10 and 60, so the shop never charges a price nobody meant.

Second, the server remembers the price it showed. The shop panel reads Config.SPEED_PRICE on the client when it builds itself. With an experiment, the server writes the player's price into a player attribute before it fires ShopOpen, the panel shows that number, and buySpeed charges the value the server stored. The client never sends a price: if it did, an exploiter would pick their own.

Luau
local function speedPrice(raw: unknown, default: number, min: number, max: number): number
	if typeof(raw) ~= "number" or raw ~= raw then
		return default
	end
	return math.clamp(math.round(raw), min, max)
end
 
print("40 -> " .. speedPrice(40, 25, 10, 60))
print('"40" -> ' .. speedPrice("40", 25, 10, 60))
print("nil -> " .. speedPrice(nil, 25, 10, 60))
print("400 -> " .. speedPrice(400, 25, 10, 60))
print("39.6 -> " .. speedPrice(39.6, 25, 10, 60))
Figure 5.1. Expected output: 40 -> 40 "40" -> 25 nil -> 25 400 -> 60 39.6 -> 40

During the experiment, which value should buySpeed pass to DataService.trySpend?

  1. The price the server stored for this player when it opened the shop
  2. The price the client sends with the ShopBuy request
  3. Config.SPEED_PRICE, because the shop always charged that
  4. The text of the price label in the shop panel
Answer

The price the server stored for this player when it opened the shop. The server picks the price once, at the shop, stores it, shows it and charges it. A price that travels from the client is a price the client controls.

Open this step in lesson mode · Link to this step · This confused me

6Set it up in the Creator Hub

Create a number config named speed_price with the value 25 (File, Open Configs in Studio, or the Configs page in the Creator Hub). A new config is staged, so it reaches Studio play sessions but not live players until you publish it2. Then, on the game's Experiments page, choose Create experiment1:

  1. Type In-experience, a name such as "Speed price 40", and the Custom metric set.
  2. Add the custom metric: source Economy, currency Coins, Average currency sink delta, filtered to the item SKU Speed. Make it the goal metric. D1 retention, D7 retention, playtime, ARPU, ARPPU, payer conversion and session time are tracked anyway.
  3. Duration 14 days, rollout 100 percent, one variant of 40 at 50 percent.
  4. Start now, or schedule it. A scheduled experiment cannot be edited, only rescheduled.

When it starts, Roblox locks the speed_price key until it ends, and the docs warn you not to change how your code sends analytics events while it runs.

Browser
The Creator Hub's Create experiment page on the variants step, with the speed_price key, a control of 25 and one variant of 40 split 50/50, and the minimum detectable effect shown below.

Select a numbered pin, or a row below, to read what it marks.

Figure 6.1.

The variants step for speed_price. The pins mark the control, the variant, the split and the minimum detectable effect.

A week into the Speed experiment, a designer wants to try 35 instead of 40 in the variant. What happens?

  1. They cannot: the config key is locked while the experiment runs, so they would stop it and start a new one
  2. They edit the variant and the results update to 35
  3. They change speed_price in the Configs page, and only the control moves
  4. They publish a new place version with SPEED_PRICE = 35
Answer

They cannot: the config key is locked while the experiment runs, so they would stop it and start a new one. A running experiment locks its key. Half a week at 40 and half at 35 would not answer either question, so the honest move is a new experiment.

Open this step in lesson mode · Link to this step · This confused me

7Will it ever answer?

Before you start, the setup page shows a minimum detectable effect: the smallest change in the goal metric the experiment can reliably detect with your player count, rollout and duration. If it says 60 percent, a real 10 percent change will never show up. Roblox warns that games with fewer than 1,000 daily active users might struggle to get useful data1.

Early harm checks have a floor too. During the first 24 hours, playtime, ARPU and payer conversion update every 5 minutes, but Roblox makes no harm decision until 10,000 players are enrolled across the variant and the control.

Luau
-- Made-up numbers for a small game: 120 new players a day, 14 days.
local newPerDay, days = 120, 14
local function perGroup(rollout: number): number
	return math.round(newPerDay * days * rollout * 0.5)
end
print("100% rollout: " .. perGroup(1) .. " per group")
print("40% rollout: " .. perGroup(0.4) .. " per group")
print("early harm floor reached: " .. tostring(perGroup(1) * 2 >= 10000))
Figure 7.1. Expected output: 100% rollout: 840 per group 40% rollout: 336 per group early harm floor reached: false

A game at Beacon Yard's stage would not reach the floor in 14 days. That is a result too: run the experiment at 100 percent rollout for the full 60 days, test a bigger change, or accept that this question waits for more players.

The setup page shows a minimum detectable effect of 80 percent for the Speed goal metric. What is the sensible move?

  1. Raise the rollout and duration, or test a bigger change; if it stays high, do not run it yet
  2. Run it anyway and act on whatever moves
  3. Split players into two variants and a control to get more data
  4. Read the results after three days instead of fourteen
Answer

Raise the rollout and duration, or test a bigger change; if it stays high, do not run it yet. The MDE depends on players per group. A larger rollout and a longer run add players; more variants and shorter runs remove them.

Open this step in lesson mode · Link to this step · This confused me

8Reading the result

Stored dataRemember: Experiments (A/B tests) is a blind taste test: two cups, and a coin toss decides who drinks which.

Results update every 24 hours. Each metric shows the variant's percent change against the control, with a confidence interval: the range the true change probably lies in. A metric is statistically significant when its interval does not overlap 0 percent. The docs' example: ARPU up 2.37 percent, between 0.55 and 4.19, is significant1. An interval from -0.5 to 2.5 is not, however good 1 percent looks.

Read it in this order. A sample ratio mismatch banner means players were not split in the planned proportions: stop and restart, because the data is spoiled. Before the decision date, wait: novelty makes early results swing. Then the goal metric. Then the guardrails. Goal up and a guardrail significantly down is a trade-off for people to weigh, not a win.

Luau
-- Made-up readout for the Speed experiment after 14 days.
local results = {
	{ "coin sink on Speed", 18, 9, 27 },
	{ "D1 retention", -1.5, -4.1, 1.1 },
	{ "playtime", 0.4, -2.1, 2.8 },
}
local function signed(x: number): string
	return (if x >= 0 then "+" else "") .. tostring(x)
end
for _, r in results do
	local significant = r[3] > 0 or r[4] < 0
	print(string.format("%s %s%% [%s, %s] %s", r[1], signed(r[2]), signed(r[3]), signed(r[4]),
		if significant then "significant" else "not significant"))
end
Figure 8.1. Expected output: coin sink on Speed +18% [+9, +27] significant D1 retention -1.5% [-4.1, +1.1] not significant playtime +0.4% [-2.1, +2.8] not significant

When you decide, Make decision walks you through a rollout: keep the control, or make the winning variant the config's new default value.

Which of these results are statistically significant?

  1. Coin sink on Speed +18%, interval +9% to +27%
  2. D1 retention -1.5%, interval -4.1% to +1.1%
  3. ARPU -3%, interval -5% to -1%
  4. Session time +6%, interval 0% to +12%
Answer

Coin sink on Speed +18%, interval +9% to +27%; ARPU -3%, interval -5% to -1%. Significant means the whole interval sits on one side of 0. The first is entirely above, the third entirely below. D1 crosses 0, and an interval that starts at exactly 0 still overlaps it.

Open this step in lesson mode · Link to this step · This confused me

9Where the taste test breaks

Where does it break?“A blind taste test: two cups, and a coin toss decides who drinks which” is a good picture of experiments (a/b tests). Where does it stop being true?

It breaks here. The tasters share a room: control and variant players share one server, see each other's prices and talk, and the change is noticed because it is new.

The true model. An in-game experiment assigns each enrolled player a control or variant value of a config key for its whole duration and compares metrics between the groups. Groups can influence each other in shared servers, so per-player values that a player meets alone give the cleanest results.

A taste test keeps its tasters apart. Beacon Yard does not. Control and variant players share one yard: they run past each other, fight the same drone and talk in chat. A variant player who pays 40 coins for Speed can watch a control player buy it for 25. Friends compare prices in a party. Players also see the change because it is new, and that novelty fades.

So an experiment on a shared, visible value is less clean than the split suggests. The docs' advice covers part of it: run for the full duration, and do not run experiments at the same time unless you are sure they cannot interact. The rest is your judgement: test values players feel alone, and treat a price that others can see as a test of fairness too.

Which Beacon Yard change fits a clean per-player experiment best?

  1. A starter coin bonus each new player gets on their first visit
  2. ROUND_SECONDS, the length of the drill everyone in the server plays
  3. The drone's speed, which every player in the yard fights
  4. Speed at 40 coins, shown next to other players who pay 25
Answer

A starter coin bonus each new player gets on their first visit. Per-player experiments work best on values a player meets alone. Shared timers and shared enemies cannot be split per player, and visible prices leak between the groups.

Open this step in lesson mode · Link to this step · This confused me

10Error Report: what broke in the new version

An experiment ships new code, and new code breaks in ways Studio did not show. Players' servers report their errors to Error Report in the Creator Hub, under the game's Monitoring section: up-to-the-minute Luau errors and warnings from servers and clients, with a count, a type (server or client), the first version that logged each message, and a stack trace when you expand a row3. The debugging lesson reads it in more depth.

Two filters fit a release. Show version marks each place publish on the error chart, and New errors since keeps only messages first seen after a version you pick. Error Report tracks up to 500 unique errors and 500 unique warnings by count, plus the top 100 new errors per version, and these counts reset every 6 hours. So a noisy warning can push a rare error out of view; custom rules on the Rules tab ignore or group messages you have already understood, from the moment you save them.

Creator Hub (illustration)
Illustration with sample data, not a live Creator Hub capture: Error Report filtered to new errors since v14, with the v14 publish marker on the chart, one Server error row for [ErrorDrill] and its expanded stack trace.

Select a numbered pin, or a row below, to read what it marks.

Figure 10.1.

The deliberate [ErrorDrill] error from the build-along, filtered to new errors since the latest version. Illustration with sample data, not a live Creator Hub capture.

You published the version that reads speed_price per player. Which Error Report setting shows only errors that this version introduced?

  1. New errors since, set to the version you just published
  2. Severity set to Warnings
  3. A custom rule that ignores everything older
  4. Date range set to the last 30 days
Answer

New errors since, set to the version you just published. New errors since compares against a version, so it shows what this release added. Show version helps too: it marks the publish on the chart, so a spike lines up with a release.

Open this step in lesson mode · Link to this step · This confused me

11Alerts: let the numbers call you

Nobody watches a dashboard all night. Alerts watch performance and data store metrics for you and send a message when one crosses a line4. You create them under Configurations, Alerts: a metric such as client crash rate, server memory or server frame rate, a trigger (a fixed value, or a percent change against the hour, day or week before), how many checks in a row must break the rule (1 to 10, at least 5 for minute checks), and a severity. They arrive at an experience-level webhook, so a Discord or Slack channel can receive them, with a summary that says "fired" or "recovered".

Alerts need the performance dashboard's eligibility, 100 or more daily active users, and up to 20 can exist per game. They do not watch Error Report counts. Roblox's advice is to look at 7 to 14 days of the metric first: if crash rate usually sits near 1.2 percent, alert at 2.5 or 3, and use a duration of 5 so a single spike does not wake anyone.

Experiments have their own warning: if early harm is found, the owner gets an email, a Creator Hub notification and, optionally, a webhook call.

An alert watches client crash rate every minute, fires above 5, with a duration of 5. These are the last seven checks. Does it fire?

-- crash rate, oldest to newest
3.1, 4.0, 6.2, 7.5, 5.0, 8.1, 6.4
  1. No: the 5.0 is not above 5, so there are only two checks in a row above it at the end
  2. Yes: five of the seven checks are above 5
  3. Yes: the newest check is above 5
  4. No: a minute alert needs a duration of at least 10
Answer

No: the 5.0 is not above 5, so there are only two checks in a row above it at the end. A duration counts consecutive breaches. 5.0 is equal, not above, so the run restarts after it and has only two checks. This is the alertFires rule in the level 3 challenge.

Open this step in lesson mode · Link to this step · This confused me

12One page for one question

The built-in pages answer general questions. A custom dashboard answers yours. Under Custom dashboards, Manage all, Create, you name a dashboard, add widgets (charts, tables and summary cards), set its default time range and press Publish: a dashboard is only saved when you publish it. A game can have up to 20, everyone on the team who can view analytics sees them, and Pin to sidebar keeps one a click away. Any chart built on the Explore page can be sent to a dashboard with Add to dashboard5.

For Beacon Yard, a "Scrap Rush" dashboard holds what the team checks during the double-coin weekend: coin sources by item SKU (are pickups paying double?), coin sinks for Speed and Shield, concurrent users and a D1 retention summary card. It answers one question, "is the event healthy?", on one page.

What watches a Beacon Yard releaseFour boxes in a row: a new version feeds Error Report, an alert webhook and a custom dashboard, each answering a different question.New versionspeed_price readError Reportwhat broke?Alertis it bad now?Dashboardis it healthy?
Figure 12.1. Each tool answers one question about a release.

Match each question during the Scrap Rush weekend to the tool that answers it.

  1. Did Saturday's publish add a new server error?
  2. Tell me if crash rate passes 3 percent tonight
  3. Are pickups paying double, and are players spending it?
  4. Does a 40-coin Speed change spending without hurting D1?
Answer

Did Saturday's publish add a new server error?: Error Report, new errors since that version; Tell me if crash rate passes 3 percent tonight: An alert with a webhook; Are pickups paying double, and are players spending it?: A custom dashboard; Does a 40-coin Speed change spending without hurting D1?: An experiment. Error Report lists errors by version. Alerts push a message when a metric crosses a line. A dashboard collects the charts for one question. Only an experiment can say what a change caused.

Open this step in lesson mode · Link to this step · This confused me

13How studios test and watch

Other ways pros do this

OptionWhat it isWhen pros pick itTrade-offs
Roblox ExperimentsBuilt-in A/B tests on config keys or matchmaking, with confidence intervals, early harm checks and a guided rollout.Any in-game value you can read from a config, in a game with enough daily players.Needs players: under about 1,000 daily users the minimum detectable effect is often too large; keys lock while it runs.
Before and after comparisonShip the change and compare periods.Only for changes you cannot split, such as a new map, read alongside player feedback.Every other change in those weeks mixes into the result.
Your own split and data pipelineHash the user id into groups and send events to your own backend through HttpService.Studios with a data team and questions the built-in metrics do not cover.You build the statistics, the storage and the privacy rules yourself.
Thumbnail personalizationRoblox shows different thumbnails and measures play through rate.Testing the store page, not the game.Answers which picture brings players in, nothing about what they do inside.

The Speed experiment ends with no significant change in coin sink and no change in D1. What does a professional team do?

  1. Keep the control, and write the result and the interval into the issue so nobody repeats the test blindly
  2. Ship 40 anyway, because the variant was slightly ahead
  3. Delete the experiment so the dashboard stays clean
  4. Rerun it with a 10 percent rollout to get a different answer
Answer

Keep the control, and write the result and the interval into the issue so nobody repeats the test blindly. Keep the control, record the result with its interval, and decide whether a bigger change is worth testing. The docs ask for exactly this: document findings and decisions.

Open this step in lesson mode · Link to this step · This confused me

14Build along: a Speed price experiment

This extends the finished game. Work on a branch of m14-ship and a private test copy of the experience, never the live one.

Build along

m14-ship

  • challenges/work/experiment_rules.luau
  • src/server/ShopService.luau
  • src/client/ShopGui.luau
  1. Write speedPrice in challenges/work/experiment_rules.luau and run the experiments-and-alerts test from the server command bar.

    You should see The level 3 challenge prints TEST PASS for every check, including price_text, price_nan and price_clamped.

  2. Copy the passing speedPrice into a new server module. In ShopService, read speed_price with GetConfigForPlayerAsync in pcall when the prompt is triggered, store the price per player, set the SpeedPrice attribute, then fire ShopOpen. Make buySpeed charge the stored price and log it as the sink amount.

    You should see Opening the shop in Play sets a SpeedPrice attribute of 25 on your player, and buying Speed spends 25.

  3. Make ShopGui read the SpeedPrice attribute for the Speed label and update when the attribute changes.

    You should see The shop label shows the SpeedPrice attribute when it is set, and Config.SPEED_PRICE before it is.

  4. Create a staged speed_price config of 25. Press Play and, before you visit the shop, run game:GetService("ConfigService"):SetTestingValue("speed_price", 40) in the server command bar, then open the shop. Stop, play again and repeat with 400. Testing values last only for that server; ClearTestingValue removes them.

    You should see With a testing value of 40, the first shop visit sets SpeedPrice to 40; in a new session with 400, it sets 60.

  5. Add a temporary server Script named ErrorDrill that runs error("[ErrorDrill] deliberate test error"), publish to your private test copy, join it from the Roblox app, then open Error Report with New errors since. Delete the script and publish again.

    You should see Error Report lists one server error containing [ErrorDrill], first seen in the version you just published.

Open this step in lesson mode · Link to this step · This confused me

15Challenges

Level 1, Apprentice

Challenge

Write the experiment plan for a change you would like to test in Beacon Yard, such as a starter coin bonus or the Shield price.

Start from
The game at milestone m14 (download)

Done means

  • An issue in your game repository titled with the change, such as Speed price 40
  • A one-sentence hypothesis with the change, the expected effect and the reason
  • One goal metric built from an event Beacon Yard already logs, one guardrail, and a decision date
  • What you will do if the result is not significant

Hints

  1. Start from the table in Write the plan before the change.
  2. The Speed SKU sink event already exists in ShopService.
  3. Decide the null result before you see any data.

Level 2, Builder

Challenge

Set up the watch for a Scrap Rush weekend: one dashboard, one webhook and one alert rule.

Start from
A private test copy of Beacon Yard

Done means

  • A published custom dashboard named Scrap Rush with a coin sources chart by item SKU and at least one summary card
  • An experience webhook pointing at a channel you own, with Test Response passing
  • An alert on client crash rate with a duration of 5 and the webhook as its delivery channel, or, if the game is below 100 daily users, the same rule written into the issue for later

Hints

  1. Build the chart in Explore, then use Add to dashboard.
  2. A dashboard is only saved when you press Publish.
  3. Alerts are under Configurations, Alerts; webhooks under Configurations, Webhooks.

Day 14. The goal metric is significantly up, and a Sample Ratio Mismatch banner is showing. What should the team do?

  1. restart, because the players were not split as planned, so no metric can be trusted
  2. ship variant, because the goal metric is significant
  3. trade-off, because the banner counts as a guardrail
  4. wait, because the banner means the experiment is still running
Answer

restart, because the players were not split as planned, so no metric can be trusted. Trust the data before you read it. Roblox recommends stopping and restarting an experiment with a sample ratio mismatch, and the rule checks it first.

Level 3, Professional

Challenge

Write the five rules in challenges/work/experiment_rules.luau. The test is challenges/experiments-and-alerts.luau and the written solution is challenges/solutions/experiments-and-alerts.md. Run it with the command in the footer.

Start from
The game at milestone m14 (download)
Grade it
In Studio, press Play, then run game.ServerScriptService.RunGameTests:Invoke("experiments-and-alerts", "experiments-rules") in the server command bar. Copy the pass code from Output.

Done means

  • speedPrice returns the default for nil, text and NaN, rounds to whole coins and clamps between min and max
  • significant is true only when the interval is entirely above or entirely below 0
  • decide returns restart, wait, keep control, trade-off with the first guardrail in alphabetical order, or ship variant, in that order of checks
  • durationValid and alertFires follow the Alerts rules: 1 to 10 whole checks, at least 5 for minute, strictly above the threshold
  • challenges/experiments-and-alerts.luau prints TEST PASS for every check

Hints

  1. NaN is the only value that is not equal to itself.
  2. Sort the guardrail names before you look for one that is significantly down; a Luau table has no order.
  3. For alertFires, check the last duration points and return false as soon as one is not above.

Open this step in lesson mode · Link to this step · This confused me

16Recap

Retiring the analogy

You no longer need “a blind taste test: two cups, and a coin toss decides who drinks which”. An in-game experiment assigns each enrolled player a control or variant value of a config key for its whole duration and compares metrics between the groups. Groups can influence each other in shared servers, so per-player values that a player meets alone give the cleanest results.

Recap

  1. An experiment splits players at random into a control and up to two variants over the same days, so a difference comes from the change; write the hypothesis, goal metric, guardrail and decision date first.
  2. In code, read the value with ConfigService:GetConfigForPlayerAsync(player) when the player reaches the feature, because GetValue enrolls them; clamp it on the server and charge the price the server stored.
  3. A result is significant only when its confidence interval does not overlap 0; check the split and the duration first, and expect a small game to wait.
  4. Error Report shows new errors by version, alerts send performance and data store breaches to a webhook, and a custom dashboard puts one question on one page.

Experiments (A/B tests) is a blind taste test: two cups, and a coin toss decides who drinks which, until the tasters share a room: control and variant players share one server, see each other's prices and talk, and the change is noticed because it is new.

Next Game design for Roblox: loops, retention, fairness

Open this step in lesson mode · Link to this step · This confused me