Genre teardowns, part 2: horror, shooter, RPG, hangout

Tear down four more Roblox genres as patterns, covering horror, shooters, RPGs and hangouts with their loops, economies, retention, monetization, safety and tech risks, and choose a genre for a Beacon Yard fork.

Concept lesson, about 65 minutes, 8 steps

By the end you can

  • Tear down the horror, shooter, RPG and hangout patterns with the same seven-row card
  • Find where each sits in Roblox's genre list, including horror, which has no genre of its own
  • Model each genre's core number (tension pacing, time to kill, the XP curve) and read what it says
  • Choose which genre a Beacon Yard fork should become, from what the yard already has

Before this: Genre teardowns, part 1: simulator, obby, tycoon, tower defense

1Where these genres sit, and the one that is missing

Here are the four genres of this part in Roblox's official list1:

Our nameOfficial genre and subgenre
HorrorNo genre of its own. Usually Survival: 1 vs All or Escape; story-led horror may fit Adventure: Story
ShooterShooter: Battle Royale, Deathmatch Shooter or PvE Shooter
RPGRPG: Action RPG, Open World & Survival RPG or Turn-based RPG
HangoutSocial, or Roleplay & avatar sim (Life, Morph Roleplay and others)

Horror is a theme, not a genre: what you do (survive, escape, follow a story) decides the genre, and the fear decides the mood. Fear also counts for your content rating. Roblox's content questionnaire has a fear category that separates scary elements from horrifying ones and asks how often they happen; frequent ones tend to need a higher rating2.

Both sidesRemember: A genre's conventions is a recipe card.

Your game: one player is a monster, the others must repair three generators and escape before the timer ends. Which official genre and subgenre fit it?

  1. Survival: 1 vs All
  2. Horror: Monster
  3. Action: Battlegrounds & Fighting
  4. Social
Answer

Survival: 1 vs All. Pick the genre by the loop. The scary theme goes into your description, your art and your content rating answers, not into the genre field.

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

2Horror

Loop. Every few seconds: look, listen, move, hide. Every round: explore, survive a threat, reach an exit or a reveal. Every week: new chapters, rooms or monsters. Economy shape: light. A meta currency buys cosmetics or small perks between runs; inside a run, the resources are light, health and time. Retention comes from new content, secrets and, above all, friends: horror is far more fun in a group, and co-play is one of the discovery signals you met in the groups lesson.

Monetization. Cosmetics (especially for a monster role in 1 vs All), revives offered between attempts, and private servers for friend groups. A revive is an in-play offer, so it needs a natural pause and time for the purchase flow. Tech risk: monster AI that feels smart without being unfair, lighting and fog that look good without costing phones their frame rate, and sound placed in 3D. Team: small to medium, but art and audio carry more of the work than code.

The core number is pacing: pressure builds while nothing happens, a scare spends it, and a relief beat follows. Without relief, constant fear turns into numbness.

Before you press Run, predict the second the first scare lands and how long the relief lasts. Then set SCARE_AT to 15 and run again: the scare now lands with no build beat in front of it, because pressure never passes BUILD_FROM.

Luau
-- A tiny tension director: pressure builds one second at a time while
-- nothing happens, a scare spends it, and a relief beat follows.
local SCARE_AT, BUILD_FROM, RELIEF_SECONDS = 30, 18, 8
 
local function step(state, dt: number): string
	if state.relief > 0 then
		state.relief = math.max(0, state.relief - dt)
		return "relief"
	end
	state.pressure += dt
	if state.pressure >= SCARE_AT then
		state.pressure = 0
		state.relief = RELIEF_SECONDS
		return "scare"
	end
	return if state.pressure > BUILD_FROM then "build" else "calm"
end
 
local state = { pressure = 0, relief = 0 }
local last = ""
for second = 1, 40 do
	local beat = step(state, 1)
	if beat ~= last then
		last = beat
		print(string.format("%2d s: %s", second, beat))
	end
end
Figure 2.1. Expected output: 1 s: calm 19 s: build 30 s: scare 31 s: relief 39 s: calm

Beacon Yard's drill lasts ROUND_SECONDS = 40. If you dropped this director into the yard unchanged, how many scares would one drill get?

local SCARE_AT = 30 -- pressure rises by 1 each second
print(math.floor(40 / SCARE_AT))
  1. 1
  2. 0
  3. 2
  4. 4
Answer

1. One beat per drill. A horror mode for the yard would shorten the build, or use the drone's position instead of the clock, so every drill gets two or three beats and a quiet moment before the end.

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

3The shooter

Loop. Every few seconds: aim, fire, take cover. Every match: eliminate, die, respawn or win the round. Every week: rank up, unlock loadouts, finish a season. Economy shape: XP and unlocks; a season pass with free and premium tracks is common. Retention comes from ranked play, seasons and playing with a regular squad.

Monetization. Cosmetics (weapon skins, effects) and season passes. In a competitive shooter, anything that makes a weapon stronger for money breaks the genre's core promise that skill decides the fight. Tech risk: the highest of the eight. Hit registration under lag (the server authority lesson's rewind buffer), aim and movement cheats, matchmaking by skill, and many fast-moving players on phones. Team: the largest of these genres, with dedicated work on netcode, anti-cheat and live seasons.

The core number is time to kill: shots needed to bring a target down, times the gap between shots. Damage works in breakpoints, and in a shooter the headshot multiplier moves them. A rifle that deals 30 to the body needs four shots on 100 health. A 1.5x headshot deals 45 and needs three. At 1.7x it deals 51, and two headshots are enough. Designers tune the multiplier against those steps, not against the raw number.

Luau
local HEALTH = 100
 
local function timeToKill(damage: number, headshot: number, shotsPerSecond: number): number
	local shots = math.floor(HEALTH / (damage * headshot))
	return (shots - 1) / shotsPerSecond
end
 
print(string.format("body, 30 dmg:      %.2f s", timeToKill(30, 1, 5)))
print(string.format("headshot x1.5:     %.2f s", timeToKill(30, 1.5, 5)))
print(string.format("headshot x1.7:     %.2f s", timeToKill(30, 1.7, 5)))
Figure 3.1. Run it in the lesson view or in the Studio command bar. The lesson view checks it with tests.

Level 1, Apprentice

Challenge

The ttk cell counts shots wrongly whenever the damage does not divide 100 exactly. Fix the rounding.

Start from
The game at milestone m14 (download)
Check it here
Run the code cell in the lesson view; the challenge completes when it passes. No Studio needed.

Done means

  • Shots needed round up, so a partial shot still counts as a shot
  • All five tests in ttk pass

Hints

  1. 100 / 45 is 2.22: two headshots leave the target at 10 health.
  2. Use math.ceil where the cell uses math.floor.
Solution
luau
local HEALTH = 100
 
local function timeToKill(damage: number, headshot: number, shotsPerSecond: number): number
	local shots = math.ceil(HEALTH / (damage * headshot))
	return (shots - 1) / shotsPerSecond
end
 
print(string.format("body, 30 dmg:      %.2f s", timeToKill(30, 1, 5)))
print(string.format("headshot x1.5:     %.2f s", timeToKill(30, 1.5, 5)))
print(string.format("headshot x1.7:     %.2f s", timeToKill(30, 1.7, 5)))

Beacon Yard's base wrench deals 34, so a 100-health drone takes 3 hits. Suppose you added a weak spot on the drone's eye that takes 1.5x damage. How many weak-spot hits kill a drone?

Answer

2 hits. Two weak-spot hits deal 102, so the weak spot saves a whole swing. That is the shooter's headshot breakpoint inside the yard: tune the multiplier so it crosses a step on purpose, or keep it just short of one.

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

4What a shooter would take from Beacon Yard

A team shooter is a match-based game, and the yard already has the match backbone. Players queue in the lobby, and one pure function decides who goes into the next match:

function MatchRules.plan(items: { QueueItem }, now: number, size: number, waitSeconds: number): { number }?
	local group: { number } = {}
	local seen: { [number]: boolean } = {}
	local oldest = math.huge
	for _, item in items do
		if not seen[item.userId] and #group < size then
			seen[item.userId] = true
			table.insert(group, item.userId)
			oldest = math.min(oldest, item.at)
		end
	end
	if #group == 0 then
		return nil
	end
	if #group >= size or now - oldest >= waitSeconds then
		return group
Figure 4.1

A shooter would keep the queue, the reserved-server teleport, the leaderboard and ExploitWatch, and grow the wrench's hit check, which already rewinds drone positions (the server authority lesson), into lag-compensated hits on every weapon and every player. It would need from nothing: weapons, skill-based matchmaking (plan groups by arrival time, not skill), and anti-cheat built for aim, not only for speed.

Reading MatchRules.plan, what decides who plays together?

  1. Arrival order: the first players in the queue, up to size, or fewer once the oldest has waited waitSeconds
  2. Each player's skill rating
  3. Whether the players are friends
  4. The players' devices
Answer

Arrival order: the first players in the queue, up to size, or fewer once the oldest has waited waitSeconds. First come, first served is fine for a co-op drill. A competitive shooter needs a rating in the queue item and a rule that widens the allowed gap the longer a player waits.

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

5The RPG

Loop. Every few seconds: fight or gather. Every session: finish a quest, level up, equip better gear. Every week: reach a new area, a boss, a rarer item. Economy shape: the deepest of the eight. Several currencies, items with stats, loot tables, crafting, and often trading between players. Roblox's quest design guide gives the building blocks: an objective, a quantity and a reward, with dailies as short goals and quest chains for longer ones3.

Retention comes from the long climb itself, story, quests and guilds. Monetization: inventory space, cosmetics, XP boosts and, where trading exists, a market. Tech risk: big profiles (every item with its stats), schema changes to items over years, item duplication through trading, and a lot of content to make and balance. Trading also brings rules: players whose PolicyService result has IsPaidItemTradingAllowed false must not trade paid items4, and regionally priced items need GetUsersPriceLevelsAsync checks so trades cannot be used to move items bought cheaply in one region5. Team: medium to large, because content is the product.

The core number is the XP curve: how much XP each level needs.

Predict before you press Run: how many times the total XP of level 10 does level 30 need, about 3, about 10 or more than 15? Then change EXPONENT to 1.2 and see how much flatter the late levels get.

Luau
-- XP needed to go from level n to n + 1, and the total to reach a level.
local BASE_XP, EXPONENT = 100, 1.5
 
local function xpToNext(level: number): number
	return math.floor(BASE_XP * level ^ EXPONENT)
end
 
local function totalTo(level: number): number
	local total = 0
	for n = 1, level - 1 do
		total += xpToNext(n)
	end
	return total
end
 
for _, level in { 2, 5, 10, 30 } do
	print(string.format("level %2d: %6d XP to next, %7d XP in total", level, xpToNext(level), totalTo(level)))
end
Figure 5.1. Expected output: level 2: 282 XP to next, 100 XP in total level 5: 1118 XP to next, 1701 XP in total level 10: 3162 XP to next, 11102 XP in total level 30: 16431 XP to next, 189018 XP in total

In the cell, reaching level 30 takes 189,018 XP in total, and level 10 takes 11,102. What does that tell the designer?

  1. The last 20 levels hold about 94% of the climb, so content and rewards must be spread to match
  2. The curve is too flat
  3. Players will reach level 30 three times faster than level 10
  4. Levels 10 to 30 need no new content
Answer

The last 20 levels hold about 94% of the climb, so content and rewards must be spread to match. Put content where the curve puts the hours, and check it with the economy and progression lessons' simulators.

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

6The hangout

Loop. Every few seconds: talk, emote, move around, show off. Every session: meet friends, play a small activity, decorate a space. Every week: events, new items, your own corner of the world. Economy shape: often a soft currency for cosmetics, houses and vehicles. Retention comes almost entirely from other people and from identity: who you are here and what you own.

Monetization: expression. Avatar items, houses, vehicles, VIP areas and private servers. Nothing to win, so little risk of pay-to-win, but a young audience makes the pressure rules from the monetization lesson matter more here than anywhere.

Tech risk and safety. The loop is conversation, so safety is the first feature. All player text must be filtered, and Roblox temporarily limits text features in a game where it detects players holding conversations through anything other than TextChatService6. That rule is about more than the filter: TextChatService also applies privacy settings and age-based limits, so free-form chat reaches only players who are allowed to talk to each other. A custom feature that lets players talk back and forth bypasses that. A sign or a pet name is not chat if it is filtered and rate limited to one change a minute per player, and preset messages picked from a fixed list are allowed across ages7. Many avatars in one place cost phones frame rate. Team: small to build, but heavy to run: moderation, events and reports never stop.

Where does it break?“A recipe card” is a good picture of a genre's conventions. Where does it stop being true?

It breaks here. A recipe card never changes and anyone can cook from it. A genre's expectations drift as players play new games, and cooking the recipe exactly gives a dish players can already get from many other games.

The true model. A teardown card records what players of a genre expect today, as patterns rather than any one game's content. Use it to meet those expectations and to see the genre's costs and risks, update it when the charts shift, and put your effort into one thing the recipe lacks.

You want a sign players can write a message on in your hangout. What must happen to the text?

  1. Filter it on the server before anyone else sees it, and keep conversations in TextChatService
  2. Nothing, signs are not chat
  3. Filter it only for players under 13
  4. Let players report it later instead of filtering
Answer

Filter it on the server before anyone else sees it, and keep conversations in TextChatService. In a hangout, every surface players can write on is part of the chat. Design it with the filter in mind from the first sketch.

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

7All eight side by side: choose a fork

GenreCore numberUsual moneyFirst riskBeacon Yard reuse
SimulatorCost over incomeMultipliers, eggsBig numbersShop, coins, data
ObbyStage pass rateSkips, cosmeticsPhone physicsData, funnel
TycoonPayback timeMultipliers, VIPParts per plotShop, data, map code
Tower defenseWave healthTowers, skinsMany enemiesLobby, queue, rounds
HorrorPacingCosmetics, revivesAI and lightingRounds, crawler, queue
ShooterTime to killSkins, seasonsNetcode, cheatsQueue, leaderboard, ExploitWatch
RPGXP curveSpace, boostsBig profiles, dupesProfileStore, migrations
HangoutPeopleExpressionSafety at scaleLobby

Retiring the analogy

You no longer need “a recipe card”. A teardown card records what players of a genre expect today, as patterns rather than any one game's content. Use it to meet those expectations and to see the genre's costs and risks, update it when the charts shift, and put your effort into one thing the recipe lacks.

Match each Beacon Yard system to the genre that would reuse it most directly.

  1. CrawlerService's chase and sense rules
  2. WaveCurve's wave health per drill (m16)
  3. DataMigration and the ProfileStore template
  4. ShopService's trySpend, save and coinSink pattern
Answer

CrawlerService's chase and sense rules: Horror (a monster that hunts players); WaveCurve's wave health per drill (m16): Tower defense (waves that scale); DataMigration and the ProfileStore template: RPG (item schemas that change for years); ShopService's trySpend, save and coinSink pattern: Tycoon (a buy button for every machine). Most genres reuse several of these; the match is the one that leans on it hardest. A fork starts from the genre whose biggest needs the yard already meets.

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

8Challenges and recap

Luau
local BUILD_SECONDS = 20
local RELIEF_SECONDS = 6
 
type Director = { pressure: number, relief: number, scares: number }
 
local function step(d: Director, dt: number, playerNearThreat: boolean): string
	if d.relief > 0 then
		d.relief -= dt
		return "relief"
	end
	d.pressure += dt
	if d.pressure >= BUILD_SECONDS then
		d.scares += 1
		return "scare"
	end
	return "calm"
end
 
local d: Director = { pressure = 0, relief = 0, scares = 0 }
for _ = 1, 25 do
	step(d, 1, false)
end
print(d.pressure, d.relief, d.scares)
Figure 8.1. Run it in the lesson view or in the Studio command bar. The lesson view checks it with tests.

Level 3, Professional

Challenge

Finish the tension director in the director-rules cell: reset after a scare, a relief that stops at 0, faster pressure near the threat, and a build beat.

Start from
The game at milestone m14 (download)
Check it here
Run the code cell in the lesson view; the challenge completes when it passes. No Studio needed.

Done means

  • A scare resets pressure to 0 and starts RELIEF_SECONDS of relief
  • Relief counts down and never goes below 0
  • Pressure builds twice as fast while playerNearThreat is true
  • The beat is build when pressure is above half of BUILD_SECONDS and no scare happens
  • All tests in director-rules pass

Hints

  1. Multiply the build rate by 2 when playerNearThreat is true.
  2. math.max(0, d.relief - dt) keeps relief from going negative.
Solution
luau
local BUILD_SECONDS = 20
local RELIEF_SECONDS = 6
 
type Director = { pressure: number, relief: number, scares: number }
 
local function step(d: Director, dt: number, playerNearThreat: boolean): string
	if d.relief > 0 then
		d.relief = math.max(0, d.relief - dt)
		return "relief"
	end
	local rate = if playerNearThreat then 2 else 1
	d.pressure += rate * dt
	if d.pressure >= BUILD_SECONDS then
		d.pressure = 0
		d.relief = RELIEF_SECONDS
		d.scares += 1
		return "scare"
	end
	return if d.pressure > BUILD_SECONDS / 2 then "build" else "calm"
end
 
local d: Director = { pressure = 0, relief = 0, scares = 0 }
for _ = 1, 25 do
	step(d, 1, false)
end
print(d.pressure, d.relief, d.scares)

Level 2, Builder

Challenge

Pitch a Beacon Yard fork in one genre, on one page.

Start from
Beacon Yard at m14-ship

Done means

  • Pick one of the eight genres for a Beacon Yard fork and fill its teardown card
  • List which yard systems you keep, which you change and which you build from nothing, with file names
  • Model the genre's core number in a few lines of Luau with Beacon Yard's real Config values where they apply
  • One change your fork makes that the genre's usual recipe does not have
  • Patterns only: no game names and no descriptions of a specific game's art, levels or UI

Hints

  1. Start from the side-by-side table: which first risk does the yard already cover?
  2. Horror and tower defense reuse the most; an RPG reuses the data layer but needs the most content.

Recap

  1. Horror has no genre of its own: pick Survival or Adventure by the loop, and answer the fear questions in the content rating questionnaire honestly.
  2. Horror tunes pacing, shooters tune time to kill, RPGs tune the XP curve, hangouts depend on people and safety.
  3. Damage works in breakpoints: Beacon Yard's 34-damage wrench sits exactly on the 3-hit breakpoint for a 100-health drone.
  4. Every text players write for others must be filtered, and conversations belong in TextChatService.
  5. Choose a fork by the genre whose first risks the yard already covers, then add one thing its recipe lacks.

A genre's conventions is a recipe card, until a recipe card never changes and anyone can cook from it. A genre's expectations drift as players play new games, and cooking the recipe exactly gives a dish players can already get from many other games.

Next Picking and validating an idea

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