Game design for Roblox: loops, retention, fairness

Design for Roblox with Beacon Yard as the case study, covering core loops, session length, onboarding, retention, fairness and pay-to-win, and iterating with analytics, experiments and configs.

Concept lesson, about 65 minutes, 10 steps

By the end you can

  • Describe a core loop and a session, using Beacon Yard's real numbers
  • Plan an onboarding funnel that gets new players to the fun in the first minute
  • Judge when a paid item becomes pay-to-win, and what Roblox's paid random items policy requires
  • Use retention, funnels, Experiments and Configs to change one thing at a time and measure it

Before this: The round loop: a state machine, Analytics: funnels, economy events, retention

1One round of Beacon Yard

Back in Core loop design: act, reward, spend, repeat you traced Beacon Yard's Config.luau numbers (40-second drill, 8-second cooldown, 5 coins a pad, 10-coin survival bonus, 34 wrench damage against 100 drone health, Speed 25, Shield 40):

	ROUND_SECONDS = 40,
	COOLDOWN_SECONDS = 8,
	COIN_VALUE = 5,
	COIN_RESPAWN_SECONDS = 4,
	SURVIVAL_BONUS = 10,
	DRONE_SPEED = 12,
	DRONE_DAMAGE = 15,
	DRONE_HIT_COOLDOWN = 1,
	DRONE_MAX_HEALTH = 100,
	WRENCH_DAMAGE = 34,
	WRENCH_RANGE = 14,
	STUN_SECONDS = 1.6,
	WALK_SPEED = 16,
	BOOST_SPEED = 24,
	SPEED_PRICE = 25,
	SHIELD_PRICE = 40,
Figure 1.1

None of those numbers is just code: together they shape session length, multi-day retention, fairness and whether paying players have an edge. This lesson is the fundamentals overview of operating a live game; Module 14 (Game design craft) takes each section below to studio depth on Beacon Yard.

How many wrench hits does it take to bring a drone from full health to 0 or below?

Answer

3 hits. Two hits leave 32 health; the third takes it below 0. Change WRENCH_DAMAGE to 50 and it becomes two hits, which changes how a round feels more than any art pass would.

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

2The core loop

Recap from Core loop design: act, reward, spend, repeat: Roblox splits a core loopCore loopThe cycle of play a game is built on: constant interaction, the actions repeated most, and the progression they feed.Think of it as the engine of a game: what turns, what it drives, and what it charges up. into minute-to-minute interaction (moving and dodging), repeated actions (coins and combat) and a progression engine (the shop)1. Notice how thin Beacon Yard's progression engine is: two items, and Speed is bought once. That is the first thing a live-game designer would expand (deep dives in Module 14: Pillars and loops: moment, session, meta and Progression: curves, unlocks and prestige).

Match each part of the core loop to Beacon Yard.

  1. Minute-to-minute interaction
  2. Most repeated set of actions
  3. Progression engine
Answer

Minute-to-minute interaction: Running around the yard and dodging the drone; Most repeated set of actions: Collecting coins and swinging the wrench; Progression engine: Spending coins on Speed and Shields. Movement is the constant baseline, coins and combat are what you repeat, and the shop is where repetition becomes progress.

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

3Loops and arcs

Loops and arcs

Designer Daniel Cook separates loops, systems you exercise again and again until you understand them deeply, from arcs, content you go through once, like a story beat or a tutorial: "an arc is a broken loop you exit immediately"2. Loops keep people playing; arcs give them reasons and moments.

Beacon Yard is almost all loop. There is no first-time story, no milestone after buying Speed, nothing that unfolds over days. That is fine for a teaching game. A live game would add arcs on top of the loop: a first-drill tutorial, a weekly event, a badge for the tenth drone.

Which of these would add an arc to Beacon Yard rather than more loop?

  1. A one-time story beat where the beacon reveals why the drones attack
  2. A third shop item bought with coins
  3. A faster coin respawn
  4. A second drone during the round
Answer

A one-time story beat where the beacon reveals why the drones attack. A story reveal happens once and then it is done. The other three change the repeated loop: more to buy, faster rewards, more pressure.

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

4Designing the session

Server sideRemember: A round state machine is a traffic light.

A session is one visit, from join to leave. Players on Roblox hop between games with friends, so a session needs natural stopping points and natural reasons to stay3. Beacon Yard's round is a 48-second cycle (40 active, 8 cooldown) plus however long the beacon waits for a press. Short rounds suit phones and quick visits; the risk is that each round feels the same. Module 14 builds return reasons and wave pacing in Retention by design: quests, dailies, streaks, return reasons and Difficulty curves and balancing with data.

If players press the beacon the moment the cooldown ends, how many full rounds fit in a 10-minute session?

Answer

12 rounds. 48 seconds per cycle. 600 / 48 = 12.5, so 12 full rounds. Twelve near-identical rounds is a lot, which is why designers vary rounds (events, a second drone, a bonus pad) long before they add content.

Where does it break?“A traffic light” is a good picture of a round state machine. Where does it stop being true?

It breaks here. A traffic light only changes on a timer, but real transitions have conditions (a press, everyone down, a path blocked) and side effects (gates, lighting, re-pathing) that must run exactly once.

The true model. A state machine is a current state plus a set of transitions. Each transition has a guard condition and side effects. One owner changes the state and publishes it, so no other code can put it in an impossible combination.

Beacon Yard's round stays Idle until someone presses the beacon. What design risk does that create for a server with one new player?

  1. Nothing happens until they find and press the beacon, so the first minute can be empty
  2. Rounds start too often
  3. The drone attacks during Idle
  4. Coins stop paying during Idle
Answer

Nothing happens until they find and press the beacon, so the first minute can be empty. The Idle to Active transition needs a press. A new player who does not notice the prompt never sees the core loop. Onboarding has to point them at the beacon.

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

5Onboarding: the first minute

Roblox's onboarding guide names three goals for the first-time user experience: teach the essentials, get to the fun quickly, and leave players wanting more. Its success is measured by day 1 retention and by how many players get through each step of the onboarding funnel4.

In Beacon Yard a new player spawns at the spawn pad, 30 studs from the centre, with pads on a 22-stud ring and a sign board nearby. A funnel turns "did they get it?" into numbers: log one event when each step is first reached, then see where players drop off5. Module 14 expands this into a full five-minute state machine and experiment in The first five minutes: an FTUE that keeps players.

There is a catch. If you log a later step without an earlier one, the funnel counts the earlier steps as complete5. A player can press the beacon before picking up any coin, and logging drill_started would then show first_coin as passed when it never happened. Either enforce the order in the game, or read the funnel as "got at least this far" instead of "did every step". Beacon Yard's Analytics.onboarding takes the second path: it saves the furthest step in the profile and never logs an earlier step late.

Roblox Studio
Beacon Yard during an active round in a Studio playtest: the HUD shows the phase and time left, the player holds the wrench near a coin pad, and the drone is closing in.

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

Figure 5.1.

The first round a new player should reach. The pins mark the round timer, the coin counter, a pad with a coin, the drone and the beacon.

Put Beacon Yard's onboarding funnel steps in the order a new player should reach them.

  1. first_coin
  2. drill_started
  3. joined
  4. first_purchase
Answer

1. joined 2. first_coin 3. drill_started 4. first_purchase. Joining, then a first coin from a nearby pad, then a first drill at the beacon, then a first purchase once they have enough coins. The big drop between two steps is where to work first.

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

6Economy: how long until the shop?

How fast players earn decides when progression kicks in. Predict how many rounds a 3-pickup player needs to buy both Speed (25) and Shield (40) with the 10-coin survival bonus before pressing Run. For a full sources-and-sinks spreadsheet and 30-day simulation across player types, continue with Economy design: sources, sinks and the spreadsheet in Module 14.

Luau
-- Beacon Yard's numbers, from Config.luau
local COIN_VALUE, SURVIVAL_BONUS = 5, 10
local ROUND_SECONDS, COOLDOWN_SECONDS = 40, 8
local SPEED_PRICE, SHIELD_PRICE = 25, 40
 
local function coinsPerRound(pickups: number, survived: boolean): number
	return pickups * COIN_VALUE + (if survived then SURVIVAL_BONUS else 0)
end
 
-- Rounds to save up for both items, if the next drill starts as soon as it can.
local cycle = ROUND_SECONDS + COOLDOWN_SECONDS
for _, pickups in { 1, 3, 6 } do
	local perRound = coinsPerRound(pickups, true)
	local rounds = math.ceil((SPEED_PRICE + SHIELD_PRICE) / perRound)
	print(string.format("%d pickups: %d coins a round, both items after %d rounds (%.1f min)", pickups, perRound, rounds, rounds * cycle / 60))
end
Figure 6.1. Expected output: 1 pickups: 15 coins a round, both items after 5 rounds (4.0 min) 3 pickups: 25 coins a round, both items after 3 rounds (2.4 min) 6 pickups: 40 coins a round, both items after 2 rounds (1.6 min)

You raise COIN_VALUE from 5 to 10 and leave everything else alone. How many rounds does the 3-pickup player now need for both items (65 coins)?

local perRound = 3 * 10 + 10
print(math.ceil(65 / perRound))
  1. 2
  2. 3
  3. 1
  4. 4
Answer

2. 40 coins a round, and 65 / 40 rounds up to 2. Doubling the coin value cut the wait from about 2.4 minutes to about 1.6, and the shop runs out of things to buy even sooner.

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

7Fairness and pay-to-win

Server sideRemember: The server is the referee with the only real scoreboard.

The Coin Pack sells 50 coins for Robux. Coins buy Speed and Shields. So money buys an advantage. Whether that is pay-to-win depends on who it is an advantage over. Beacon Yard is cooperative: everyone fights the same drone, so a faster teammate helps the team. In a game where players race or fight each other, the same item would let money beat skill, which drives free players away and, with them, the crowd the payers came for. Roblox's monetization guide separates enhancement items (speed, protection, tools) from expression items (skins, emotes)6; expression is the safe default for anything competitive.

Fairness also needs a referee. Beacon Yard decides coins, damage and purchases on the server, so a cheat cannot simply claim them.

If you ever sell random rewards, Roblox's policy applies: any random item bought directly or indirectly with Robux, including through a currency Robux can buy, must show every outcome and its numerical odds, as percentages summing to 100%7. Module 14 audits value ladders, contextual offers and ethics in Monetization design players respect, and co-op roles and trading risks in Designing for groups: co-op, competition, trading.

You add a Scrap Crate that costs 30 coins and gives a random cosmetic. Which statements are true?

  1. It is a paid random item, because coins can be bought with Robux through the Coin Pack
  2. You must show every possible cosmetic and its odds as percentages that sum to 100%
  3. Selling cosmetics rather than Speed keeps it from being pay-to-win
  4. It is exempt from the policy because the price is in coins, not Robux
Answer

It is a paid random item, because coins can be bought with Robux through the Coin Pack; You must show every possible cosmetic and its odds as percentages that sum to 100%; Selling cosmetics rather than Speed keeps it from being pay-to-win. Coins are purchasable through the Coin Pack, so the crate is a paid random item and needs full odds. Cosmetics are expression items, so they do not tip the game toward payers.

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

8Measure, then change one thing

Beacon Yard already logs three custom events from the server, through one guarded function:

function Analytics.log(player: Player, eventName: string, value: number?)
	safely(function()
		AnalyticsService:LogCustomEvent(player, eventName, value)
Figure 8.1

Those events (round_started, coin_collected, item_bought) show what players do; retention (D1, D7 and D30) shows whether they come back8. When a design hypothesis needs causal proof rather than a week-over-week guess, wire a per-player 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. and Experiment using the ConfigService:GetConfigForPlayerAsync(player) workflow from Change with evidence: Experiments, error reports and alerts910. For cohort LTV, ARPDAU and recommender signals, see The metrics that matter: retention, ARPDAU, conversion, LTV.

Other ways pros do this

OptionWhat it isWhen pros pick itTrade-offs
Creator Hub analyticsBuilt-in dashboards: engagement, retention, monetization, funnels, custom and economy events.Every Roblox game. It is free and needs no setup beyond logging events.Events only from the server and only in published games; you work within its charts.
Experiments and ConfigsRoblox's per-player A/B tests and live global config values (covered in the previous lesson).Testing one per-player design change against a hypothesis and guardrail before shipping to everyone.Server-only, needs enough players over 14 to 60 days, and cannot split a shared server timer per player.
Third-party analytics over HttpServiceSending your own events to an external service or warehouse.Studios with a data team that wants raw events and custom queries.Privacy and data-protection duties, HTTP limits, and code to maintain.
Playtests and watching playersSitting next to a player, or recording sessions with consent.Early, before you have numbers, and whenever numbers say where but not why.Small samples; your friends are not your audience.

Day 1 retention rose the week you added a first-drill arrow, and a big YouTuber also played that week. Why is comparing this week's retention with last week's misleading?

  1. Week-over-week numbers mix the onboarding change with the new audience from the YouTuber; an A/B experiment over the same days isolates the design change
  2. Retention numbers are never comparable across months
  3. YouTuber traffic is excluded from Creator Hub retention charts
  4. Funnel events stop recording during high traffic
Answer

Week-over-week numbers mix the onboarding change with the new audience from the YouTuber; an A/B experiment over the same days isolates the design change. Week-over-week numbers mix your design change with the influx of new players. Only testing both variants over the same days isolates the effect.

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

9Challenges

Level 1, Apprentice

Challenge

Write a one-page design note for Beacon Yard as a live game.

Start from
Beacon Yard at m06-drone-wrench

Done means

  • One page naming Beacon Yard's minute-to-minute interaction, repeated actions and progression engine
  • Two arcs you would add, each with the day it would appear for a new player
  • One number from Config.luau you would change first, and why

Hints

  1. Use the three-part loop from the core loop step.
  2. An arc is consumed once: a story beat, a first-drill tutorial, a badge.
  3. Pick the number that affects the first five minutes most.

Level 2, Builder

Challenge

Design Beacon Yard's first-minute onboarding arc and a policy-compliant cosmetic Scrap Crate table, ready to test against your funnel and retention numbers.

Start from
Beacon Yard at m06-drone-wrench

Done means

  • A first-minute onboarding plan that solves the Idle-beacon risk and maps each beat to a funnel step
  • A cosmetic-only Scrap Crate table listing every item and its numerical odds summing to exactly 100%
  • One primary retention metric and one monetization guardrail you would watch after shipping the change

Hints

  1. Point new players toward a coin pad and the beacon without taking away movement control.
  2. Check that every item in the crate is an expression item (no gameplay edge) and that percentages add up to 100%.
  3. Write the guardrail before you ship so a gain in retention does not hide a drop in Coin Pack revenue.

Your Speed-price experiment (20 vs 25 coins) has day 1 retention as its primary metric. Which guardrail fits Beacon Yard best?

  1. Coin Pack purchases per player, so a cheaper upgrade does not quietly cut revenue
  2. The colour of the HUD
  3. The number of pads
  4. Total place visits across all games
Answer

Coin Pack purchases per player, so a cheaper upgrade does not quietly cut revenue. Lowering Speed's price lets players afford it sooner, which might reduce Coin Pack sales. Watching that alongside retention stops a win on one metric from hiding a loss on another.

Level 3, Professional

Challenge

Start from the m14-ship tag in the game repo, then build the onboarding funnel tracker that feeds AnalyticsService:LogOnboardingFunnelStepEvent. This tracker accepts known steps in any order, and the test needs that: a first_coin logged first must still log. So it does not stop a skipped step. The dashboard will count any step before the one you log as complete, so read its numbers as "got at least this far". Run it with game.ServerScriptService.RunGameTests:Invoke("game-design").

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

Done means

  • challenges/work/onboarding_funnel.luau lists steps starting with joined, with first_coin before drill_started
  • Each step logs once per tracker, with its position in STEPS
  • Repeats and unknown steps log nothing
  • The game-design challenge prints TEST PASS for all four checks

Hints

  1. table.find(Funnel.STEPS, stepName) gives the step number or nil.
  2. Keep a logged table inside Funnel.new, so each player has their own.
  3. Return early for nil or already-logged steps.

You wire the tracker into CoinService and play in Studio. The funnel page on the Creator Hub stays empty. Why?

  1. Funnel events are sent only from the server of a published game, never from Studio
  2. The tracker has a bug
  3. Funnels need at least 1,000 players
  4. Funnel events must be sent from the client
Answer

Funnel events are sent only from the server of a published game, never from Studio. The docs say events can only be sent from the server and in published games. In Studio the call throws, which is why Beacon Yard's analytics calls are guarded and warn once.

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

10Recap

Retiring the analogy

You no longer need “the referee with the only real scoreboard”. The server runs the authoritative copy of the whole game world. Anything that matters (coins, damage, purchases) is decided there, and clients only see what it replicates to them.

With server-owned rules keeping Beacon Yard fair and a 48-second round cycle giving players a clear session rhythm, you can retire both metaphors and read the real Config.luau numbers directly.

Retiring the analogy

You no longer need “a traffic light”. A state machine is a current state plus a set of transitions. Each transition has a guard condition and side effects. One owner changes the state and publishes it, so no other code can put it in an impossible combination.

Recap

  1. A core loop is minute-to-minute play, the actions you repeat and a progression engine; Beacon Yard's engine (two shop items) is the thinnest part.
  2. Sessions and onboarding decide retention: get a new player to a coin and a drill in the first minute, and measure each step with a funnel.
  3. Money for advantage is pay-to-win only where players compete; paid random items need full odds; change one Config value at a time through an Experiment.

A round state machine is a traffic light, until a traffic light only changes on a timer, but real transitions have conditions (a press, everyone down, a path blocked) and side effects (gates, lighting, re-pathing) that must run exactly once.

The server is the referee with the only real scoreboard, until the server is also the field itself, and it cannot see things that exist only on a client, such as a player's GUI or a LocalScript's effects.

Next Blender basics for Roblox, part 1: the window, the camera and the stud

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