Capstone, part 5: the certification quiz

A cumulative 35-question certification quiz for Beacon Yard spanning every module from Git and Studio through remotes, animation, pathfinding, physics, React, audio, VFX, ProfileStore, teleports, MemoryStore, CI, Jest-Lua, performance, Parallel Luau, localization, safety, flags and marketing.

Project lesson, about 20 minutes, 12 steps

By the end you can

  • Answer 35 questions spanning every module (m-1 through m11), grounded in Beacon Yard's real m14-ship code, numbers and tools
  • Pinpoint any module where a first-try answer slipped and jump back to that lesson
  • Distinguish a self-check score from real portfolio proof (your shipped repository, CI and tests)

Before this: Capstone, part 4: ship it to staging (private publish, CI and deploy)

1How the 35-question quiz works

There are 35 questions grouped across the entire course (m-1 through m11). Every code snippet is pinned to m14-ship, your finished Beacon Yard repository.

Scoring matches the rest of the site: 10 XP for a first-try answer, 5 after a miss. A pass is at least 28 of 35 (80%) answered correctly on the first try. That is a self-check, not an external certificate: your repository, tests, green CI and staging deploy are the real proof.

Module m-1 (Git): git show --stat m05-the-round reports +656 -14 for the round milestone. By how many net lines did the repository grow?

Answer

642 lines. 656 minus 14 is 642. Each milestone tag adds one system, and git diff between consecutive tags isolates that lesson's code.

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

2Modules m0 and m1: setup, data model and 3D math

-- meshes and textures. The repo ships every id as 0. A feature whose id
-- is 0 switches itself off and prints one warning that starts with [Ids].
Figure 2.1

Module m0 (Setup): The repository ships every account id as 0. What happens when COIN_PACK_PRODUCT_ID is 0?

  1. The feature switches itself off, warns once with [Ids], and the server refuses the purchase prompt
  2. Studio opens a prompt for a default sandbox product
  3. The server grants 50 free coins
  4. The shop crashes on boot
Answer

The feature switches itself off, warns once with [Ids], and the server refuses the purchase prompt. Ids at 0 disable account-bound features cleanly with a single [Ids] warning. Your real numbers live in git-ignored Ids.local.luau.

Module m1 (Data model): Match each Roblox service container to what it does.

  1. ServerScriptService
  2. StarterPlayerScripts
  3. ReplicatedStorage
  4. ServerStorage
Answer

ServerScriptService: Runs server Scripts and is never replicated to clients; StarterPlayerScripts: Copies LocalScripts to each player's client; ReplicatedStorage: Holds shared modules and assets both sides can require; ServerStorage: Server-only storage that clients never receive. ServerScriptService and ServerStorage never replicate to clients. StarterPlayerScripts runs on each client, and ReplicatedStorage is shared.

		-- A touch is only a hint. Check the character's root is close
		-- enough to the coin before paying.
		local character = player.Character
		local rootPart = if character then character:FindFirstChild("HumanoidRootPart") else nil
		if rootPart == nil or not rootPart:IsA("BasePart") then
			return
		end
		if (rootPart.Position - coin.Position).Magnitude > 12 then
			return
		end
		seen[player] = true
Figure 2.2

Module m1 (3D math): A player's root part is at (0, 0, 0) and a coin is at (9, 0, 12). What does this distance check print?

local root = Vector3.new(0, 0, 0)
local coin = Vector3.new(9, 0, 12)
print((root - coin).Magnitude > 12)
  1. true
  2. false
  3. 15
  4. 12
Answer

true. The distance is 15 studs, which is greater than 12, so the check prints true and CoinService refuses to pay.

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

3Modules m2 and m3: Luau, client-server, remotes and security

function DataService.trySpend(player: Player, amount: number): boolean
	local data = waitProfile(player)
	if not data or amount <= 0 or data.coins < amount then
		return false
	end
	data.coins -= amount
	pushCoins(player)
	return true
Figure 3.1

Module m2 (Luau): DataService.trySpend refuses when balance is below price. What does this print?

local coins = 25
local function trySpend(amount)
	if amount <= 0 or coins < amount then
		return false
	end
	coins -= amount
	return true
end
print(trySpend(25), coins)
  1. true 0
  2. false 25
  3. true 25
  4. false 0
Answer

true 0. 25 < 25 is false, so the purchase succeeds and leaves 0 coins. A player with exactly 25 coins can buy the Speed upgrade.

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

In Beacon Yard, DataService holds the official coin balance and CombatService calls every hit on the server, while each client only renders a copy of the HUD. Keep where that referee model stops in mind before answering the next question.

Where does it break?“The referee with the only real scoreboard” is a good picture of the server. Where does it stop being true?

It breaks here. 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.

The true model. 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.

Module m3 (Client and server): A LocalScript edits a player's HUD coin label and leaderstats.Coins.Value to 999 on their device. What does the server's ProfileStore session hold?

  1. Whatever it held before: a LocalScript's edits to UI and value objects stay on that client
  2. 999 immediately
  3. 999 on the next autosave
  4. An error that kicks the player automatically
Answer

Whatever it held before: a LocalScript's edits to UI and value objects stay on that client. The HUD and leaderstats are display copies on the client, and a LocalScript's change to them is never sent up. Only the server's DataService owns the real coin balance. Physics is the exception: a client that owns the network ownership of a part can move it, and the server accepts that simulation result, which is why gameplay rules never trust a part's position alone.

local REMOTE_NAMES: { string } = { "RoundState", "Feedback", "ShopOpen", "ShopBuy", "Swing", "SetSetting" }
Figure 3.2

Module m3 (Remotes): At m14-ship, Remotes.luau creates six RemoteEvents (RoundState, Feedback, ShopOpen, ShopBuy, Swing, SetSetting). Which three does a client fire at the server, so the server must validate their arguments?

  1. ShopBuy
  2. Swing
  3. SetSetting
  4. RoundState
  5. ShopOpen
Answer

ShopBuy; Swing; SetSetting. At m14-ship (from m07-feel onward), Remotes.luau creates six events. ShopBuy, Swing and SetSetting arrive from clients via OnServerEvent and are validated on the server. RoundState, Feedback and ShopOpen go server-to-client.

local ORIGIN_MAX_STUDS = 8
local DRONE_TAG = "Drone"
local CRAWLER_TAG = "Crawler"
local SWING_GAP = 0.4
Figure 3.3

Module m3 (Security): How many studs from the player's Head may a client's Swing origin sit before CombatService rejects it?

Answer

8 studs. ORIGIN_MAX_STUDS is 8 studs, the ray length is WRENCH_RANGE (14 studs), and SWING_GAP enforces 0.4 seconds between swings.

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

4Module m4 (part 1): drone, round loop and animation

	DRONE_MAX_HEALTH = 100,
	WRENCH_DAMAGE = 34,
	WRENCH_RANGE = 14,
Figure 4.1

Module m4 (Drone and wrench): How many hits of Config.WRENCH_DAMAGE destroy a drone starting at Config.DRONE_MAX_HEALTH?

Answer

3. Three hits of 34 destroy a 100-health drone. The drone deals 15 damage per hit on a 1-second cooldown.

Module m4 (Round loop): Put one drill in the exact order RoundService runs it.

  1. Cooldown: 8 seconds before the next drill
  2. Idle again, and the beacon prompt returns
  3. Active: 40 seconds with the drone and crawler out
  4. Idle: a player holds E at the beacon
Answer

1. Idle: a player holds E at the beacon 2. Active: 40 seconds with the drone and crawler out 3. Cooldown: 8 seconds before the next drill 4. Idle again, and the beacon prompt returns. Idle -> Active (40s) -> Cooldown (8s) -> Idle. Only the server transitions phases.

-- The swing itself is an Animation you author in the Animation Editor
-- (Ids.WRENCH_SWING_ANIMATION). A KeyframeMarker named Impact sits on the
-- contact frame, and GetMarkerReachedSignal("Impact") puts the spark on
-- that exact frame. With the id at 0 there is no animation, so the spark
-- fires a short, fixed time after the input instead.
Figure 4.2

Module m4 (Animation): How does CombatClient time the wrench impact spark when WRENCH_SWING_ANIMATION is set versus when it is 0?

  1. With an animation id, GetMarkerReachedSignal("Impact") fires on the contact frame; at 0, it falls back to SWING_IMPACT_FALLBACK_SECONDS (0.12s)
  2. It always waits 1 second after clicking
  3. The server plays the animation on the client's Humanoid directly
  4. Without an animation id, the wrench cannot deal damage
Answer

With an animation id, GetMarkerReachedSignal("Impact") fires on the contact frame; at 0, it falls back to SWING_IMPACT_FALLBACK_SECONDS (0.12s). KeyframeMarkers tie visual impact to the exact authored swing frame via GetMarkerReachedSignal("Impact"). At id 0, the fallback timer keeps feedback crisp without breaking gameplay.

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

5Module m4 (part 2): pathfinding, physics and controls

function CrawlerBrain.shouldRepath(now: number, lastPathAt: number, targetMoved: number, blockedAhead: boolean): boolean
	if blockedAhead then
		return true
	end
	if now - lastPathAt < Config.CRAWLER_MIN_REPATH_SECONDS then
		return false
	end
	return targetMoved >= Config.CRAWLER_REPATH_DISTANCE
Figure 5.1

Module m4 (NPC pathfinding): Why does CrawlerService call root:SetNetworkOwner(nil) and throttle ComputeAsync through CrawlerBrain.shouldRepath?

  1. SetNetworkOwner(nil) keeps physics on the server so a nearby client cannot steer the crawler, and shouldRepath avoids wasting server CPU recomputing paths every frame
  2. SetNetworkOwner(nil) makes the crawler invisible to clients
  3. PathfindingService fails unless ComputeAsync runs every 0.01 seconds
  4. Without SetNetworkOwner(nil), Humanoid:MoveTo cannot walk around corners
Answer

SetNetworkOwner(nil) keeps physics on the server so a nearby client cannot steer the crawler, and shouldRepath avoids wasting server CPU recomputing paths every frame. Roblox's automatic network ownership can hand a nearby client physics control of an unanchored NPC. Pinning ownership to nil keeps the server authoritative, and throttling repaths protects server frame time.

	-- HingeConstraint rotates around Attachment0's X axis.
	joint.CFrame = CFrame.fromMatrix(position, Vector3.xAxis, Vector3.yAxis)
	joint.Parent = parent
Figure 5.2

Module m4 (Physics): In ExhibitService.luau, which part is anchored and which axis does the SignHinge HingeConstraint rotate around?

  1. SignPost is anchored, Sign is unanchored, and HingeConstraint rotates around Attachment0's X axis
  2. Both SignPost and Sign are anchored so the sign never falls
  3. Sign is anchored and SignPost swings around the Y axis
  4. HingeConstraint ignores Attachment orientation and always rotates around world Y
Answer

SignPost is anchored, Sign is unanchored, and HingeConstraint rotates around Attachment0's X axis. A swinging sign needs an anchored post and an unanchored sign joined by a HingeConstraint, whose rotation axis is Attachment0's X axis.

local BINDINGS: { [ActionName]: Binding } = {
	WrenchSwing = {
		title = "Swing",
		inputs = { Enum.KeyCode.F, Enum.KeyCode.ButtonR2 },
		touchButton = true,
	},
	CameraFieldOfView = {
		title = "Zoom",
		inputs = { Enum.KeyCode.Q, Enum.KeyCode.ButtonY },
		touchButton = true,
	},
	OpenSettings = {
		title = "Settings",
		inputs = { Enum.KeyCode.P, Enum.KeyCode.DPadUp },
		touchButton = true,
	},
	-- Bound only while the shop is open. A mouse or a finger uses the
	-- Close button instead, so no touch button.
	CloseShop = {
		title = "Close",
		inputs = { Enum.KeyCode.ButtonB },
		touchButton = false,
Figure 5.3

Module m4 (Input and mobile): Match each named action in Controls.luau (at m14-ship) to its inputs.

  1. WrenchSwing
  2. CameraFieldOfView
  3. OpenSettings
  4. CloseShop
Answer

WrenchSwing: F and ButtonR2, plus a touch button; CameraFieldOfView: Q and ButtonY, plus a touch button; OpenSettings: P and DPadUp, plus a touch button; CloseShop: ButtonB, with no touch button. ContextActionService binds keyboard, gamepad and touch under one action name. CloseShop is bound only while the shop is open and omits a touch button because phones tap the Close button directly.

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

6Module m5: React-lua, audio and VFX

-- State comes from three places the server already owns: the Coins value
-- in leaderstats, the SpeedPass attribute, and the ShopOpen remote. Each
-- is read in a hook (useState holds the value, useEffect subscribes and
-- cleans up). Buttons are still requests: pressing one fires ShopBuy and
-- the server decides.
Figure 6.1

Module m5 (React-lua): In m14-ship's ShopApp.luau, where does React get its state, and what happens when a player clicks Speed?

  1. Hooks subscribe to leaderstats.Coins, the SpeedPass attribute and ShopOpen; clicking Speed fires ShopBuy so the server decides
  2. React stores the authoritative coin balance inside useState and subtracts 25 locally
  3. ShopApp queries ProfileStore directly from the client
  4. Clicking Speed destroys and recreates the entire ScreenGui by hand
Answer

Hooks subscribe to leaderstats.Coins, the SpeedPass attribute and ShopOpen; clicking Speed fires ShopBuy so the server decides. React-lua renders declaratively from server-replicated state (leaderstats, attributes, remotes). Buttons only fire ShopBuy requests.

-- the matching 2D sound from the shared config. Every sound goes through
-- one SoundGroup, Effects, so a single volume controls all of them. Each
-- kind has its own base pitch, and every play nudges that pitch a little
-- (Config.SFX_PITCH_SPREAD) so ten coins in a row do not sound like a
Figure 6.2

Module m5 (Audio): Why does SoundClient route every sound through one SoundGroup named Effects and nudge PlaybackSpeed by Config.SFX_PITCH_SPREAD?

  1. One SoundGroup gives a single volume bus for all effects, and slight pitch variation keeps repeated coin pickups from sounding mechanical
  2. Roblox throws an error if a Sound has no SoundGroup
  3. PlaybackSpeed controls 3D spatial rolloff distance
  4. SoundGroups automatically replicate client sounds to every other player
Answer

One SoundGroup gives a single volume bus for all effects, and slight pitch variation keeps repeated coin pickups from sounding mechanical. Routing SFX through one SoundGroup gives a clean mix bus, and nudging PlaybackSpeed within +/-8% prevents repetitive ear fatigue.

	emitter.Rate = 0
	emitter.Lifetime = NumberRange.new(LIFETIME * 0.5, LIFETIME)
	emitter.Speed = NumberRange.new(if reduced then style.speed * 0.3 else style.speed * 0.6, style.speed)
	emitter.SpreadAngle = Vector2.new(180, 180)
	emitter.Drag = 4
	emitter.Size = NumberSequence.new({
		NumberSequenceKeypoint.new(0, style.size),
		NumberSequenceKeypoint.new(1, 0),
	})
	emitter.Transparency = NumberSequence.new({
		NumberSequenceKeypoint.new(0, 0),
		NumberSequenceKeypoint.new(1, 1),
	})
	emitter.Parent = anchor
	anchor.Parent = workspace
 
	local count = if reduced then math.max(1, math.floor(style.count * Config.VFX_REDUCED_SHARE)) else style.count
	emitter:Emit(count)
Figure 6.3

Module m5 (VFX): Why does VfxClient set emitter.Rate = 0 and call emitter:Emit(count), and how does ReducedMotion affect count?

  1. Rate = 0 with Emit(count) fires a single bounded burst instead of an endless stream, and ReducedMotion scales count down by VFX_REDUCED_SHARE (0.3)
  2. Rate = 0 disables the emitter completely so Emit does nothing
  3. ReducedMotion deletes Debris so sparks stay forever
  4. VfxClient runs on the server so every player sees identical particles
Answer

Rate = 0 with Emit(count) fires a single bounded burst instead of an endless stream, and ReducedMotion scales count down by VFX_REDUCED_SHARE (0.3). One-shot bursts use Rate = 0 plus :Emit(count) and Debris cleanup so emitters never leak particles, while ReducedMotion trims burst counts to 30%.

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

7Module m6: ProfileStore, teleports and MemoryStore

Module m6 (ProfileStore): From m10-memory onward, where do player profiles live and what happens to an existing BeaconYard_v1 record?

  1. In ProfileStore (store BeaconYard_v2); the first session copies BeaconYard_v1 across once and sets legacyImported = true
  2. Still inside BeaconYard_v1, which ProfileStore edits in place
  3. Written to both stores on every coin pickup
  4. Stored in ReplicatedStorage so clients can read it
Answer

In ProfileStore (store BeaconYard_v2); the first session copies BeaconYard_v1 across once and sets legacyImported = true. ProfileStore owns BeaconYard_v2. DataService imports BeaconYard_v1 once per player, and a failed legacy read leaves legacyImported false so the next session retries.

	local options = Instance.new("TeleportOptions")
	options.ReservedServerId = message.serverId
	options:SetTeleportData({ expected = #message.userIds })
Figure 7.1

Module m6 (Lobby and teleport): Why does QueueService set options.ReservedServerId to the shared GUID from MessagingService before calling TeleportAsync?

  1. So players teleported from different lobby servers all land inside the exact same reserved match server
  2. So players bypass PlaceRole and boot into Solo mode
  3. Because TeleportAsync rejects tables of more than one player without a GUID
  4. So TeleportData becomes trusted server-signed data
Answer

So players teleported from different lobby servers all land inside the exact same reserved match server. Every lobby server teleports its own local players with the same ReservedServerId GUID so the whole group lands in one dedicated match server. Note that TeleportData is still untrusted and clamped by MatchRules.expectedPlayers.

-- a queue read works: ReadAsync hands the items to one caller and hides
-- them from everyone else until RemoveAsync, or until the hide time runs
-- out. If the group is not ready yet the items are simply left, and they
-- come back after QUEUE_HIDE_SECONDS. MatchRules decides when a group is
Figure 7.2

Module m6 (MemoryStore): Why is it safe for every lobby server to poll MemoryStoreQueue:ReadAsync on a loop, and why must you never store a player's permanent coins in MemoryStore?

  1. ReadAsync hides read items from other servers for QUEUE_HIDE_SECONDS until RemoveAsync; MemoryStore entries expire and are ephemeral, never durable storage
  2. MemoryStore locks the entire experience so only one lobby server can run at a time
  3. MemoryStore backs up every entry to DataStoreService automatically
  4. ReadAsync deletes items permanently before your code even inspects them
Answer

ReadAsync hides read items from other servers for QUEUE_HIDE_SECONDS until RemoveAsync; MemoryStore entries expire and are ephemeral, never durable storage. The visibility timeout (QUEUE_HIDE_SECONDS = 10) prevents two lobby servers from matching the same player at once. Because MemoryStore entries have a short TTL and can be evicted, permanent progression always belongs in DataStores / ProfileStore.

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

8Modules m7 and m8: monetization, analytics and Blender scale

	local applied = ReceiptRules.applyReceipt(data, receipt, Config.COIN_PACK_COINS)
	if applied == nil then
		-- The id appeared in the profile while the old row was being read.
		return granted
	end
	DataService.syncCoins(player)
 
	if not DataService.save(player) then
		ReceiptRules.undoReceipt(data, receipt, Config.COIN_PACK_COINS, applied)
		DataService.syncCoins(player)
		return notYet
Figure 8.1

At m14-ship the handler above keeps the purchase id inside the player's own saved data (recentPurchaseIds), in the same change as the coins, and saves once. Earlier tags wrote it as a separate data store row, which left a gap between two writes. The sketch in the next question shows the safe order Roblox recommends.

Module m7 (Monetization): In this sketch of the safe Coin Pack order, the grant, the purchase id and the one save all succeeded. Which line leaves the purchase unresolved, so Roblox hands the same receipt over again?

DataService.addCoins(player, Config.COIN_PACK_COINS)
recordPurchaseId(player, receipt.PurchaseId)
if not DataService.save(player) then return Enum.ProductPurchaseDecision.NotProcessedYet end
return Enum.ProductPurchaseDecision.NotProcessedYet
Answer

Line 4: return Enum.ProductPurchaseDecision.NotProcessedYet. Fixed: return Enum.ProductPurchaseDecision.PurchaseGranted. Returning NotProcessedYet leaves the purchase unresolved. Roblox has no timer that retries it. It delivers the receipt again when the player rejoins or makes another developer product purchase, and an unresolved purchase is not removed when escrow ends. Once the coins and the purchase id are saved in one record, return Enum.ProductPurchaseDecision.PurchaseGranted. ProcessReceipt is the older callback, and the newer BindReceiptHandler follows the same idea.

--   Joined > FirstCoin > StartedDrill > SurvivedDrill > FirstPurchase.
Figure 8.2

Module m7 (Analytics): Put Beacon Yard's onboarding funnel in the order a new player moves through it.

  1. FirstPurchase
  2. StartedDrill
  3. Joined
  4. FirstCoin
  5. SurvivedDrill
Answer

1. Joined 2. FirstCoin 3. StartedDrill 4. SurvivedDrill 5. FirstPurchase. Joined -> FirstCoin -> StartedDrill -> SurvivedDrill -> FirstPurchase. The furthest step is stored in ProfileStore (onboardingStep) so each step logs once per player.

Module m8 (Art pipeline): Beacon Yard treats 1 Blender unit as 1 stud (0.28 metres). How many metres wide is a crate modeled at 5 Blender units?

Answer

1.4 metres (within 0.01). 5 studs times 0.28 metres is 1.4 metres. Importing FBX with the wrong unit scale makes meshes arrive 100 times too large or small.

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

9Module m9: toolchain, CI and Open Cloud deploy

rojo = "rojo-rbx/rojo@7.5.1"
stylua = "JohnnyMorganz/StyLua@2.1.0"
selene = "Kampfkarren/selene@0.32.0"
wally = "UpliftGames/wally@0.3.2"
luau-lsp = "JohnnyMorganz/luau-lsp@1.70.1"
Figure 9.1

Module m9 (Toolchain): Match four tools pinned in rokit.toml at m14-ship to their jobs.

  1. Rojo
  2. StyLua
  3. Selene
  4. luau-lsp
Answer

Rojo: Syncs files from the repository into Studio and builds .rbxlx files; StyLua: Formats Luau source files consistently; Selene: Lints Luau code for common bugs and style problems; luau-lsp: Type-checks --!strict Luau files against the sourcemap and Roblox APIs. Rojo syncs and builds, StyLua formats, Selene lints, Wally installs packages, and luau-lsp runs strict type checking in VS Code and CI.

  types:
    name: type check
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
      - uses: CompeyDev/setup-rokit@1d9390883f7ebce19d48f5b8d006e11d387c92ab # v0.2.1
        with:
          version: v1.2.0
      - name: wally install
        run: wally install
      - name: scripts/typecheck.sh
        run: bash scripts/typecheck.sh
Figure 9.2

Module m9 (CI): Beacon Yard's .github/workflows/ci.yml runs stylua --check, selene, scripts/typecheck.sh, scripts/check-ids.mjs and rojo build on every push and pull request. What makes those jobs block a merge into main?

  1. A branch protection rule or ruleset on main that requires them. The workflow file only runs the checks and reports pass or fail
  2. Because GitHub refuses to store .luau files without a workflow
  3. Because CI automatically publishes every pull request straight to production
  4. To replace playtesting in Studio completely
Answer

A branch protection rule or ruleset on main that requires them. The workflow file only runs the checks and reports pass or fail. The YAML triggers and runs the checks. Blocking is a GitHub setting outside the file: a branch protection rule or ruleset that requires those checks. Without it, a red check is only a warning. Deploying stays in a separate manual workflow (deploy.yml), and CI complements Studio playtests rather than replacing them.

concurrency:
  group: deploy
  cancel-in-progress: false
 
permissions:
  contents: read
 
jobs:
  deploy:
    runs-on: ubuntu-latest
    environment: production
Figure 9.3

Module m9 (Open Cloud deploy): In m14-ship's deploy.yml and scripts/publish-place.mjs, why do ROBLOX_API_KEY and IDS_LOCAL_LUAU live inside a GitHub Actions environment instead of the repository?

  1. So secrets never enter Git history, pull requests from forks cannot read them, and required reviewers can gate every deploy
  2. Because Node cannot read environment variables from local terminals
  3. Because Roblox bans repositories that contain a deploy.yml file
  4. So every contributor can view the raw API key in the workflow logs
Answer

So secrets never enter Git history, pull requests from forks cannot read them, and required reviewers can gate every deploy. Environment-scoped secrets stay out of Git, are blocked from fork pull requests, and support required human approval before Open Cloud uploads a build.

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

10Module m10: Jest-Lua, playtests, performance and Parallel Luau

describe("FlagService.multiplier", function()
	it("is 1 when the flag is off or missing", function()
		expect(FlagService.multiplier(nil, nil)).toBe(1)
		expect(FlagService.multiplier(false, 3)).toBe(1)
	end)
 
	it("counts only the boolean true as on", function()
		expect(FlagService.multiplier("yes", 3)).toBe(1)
		expect(FlagService.multiplier(1, 3)).toBe(1)
	end)
 
	it("uses the configured number when the event is on", function()
		expect(FlagService.multiplier(true, 3)).toBe(3)
	end)
 
	it("falls back to the default when the number is not a number", function()
		expect(FlagService.multiplier(true, "x")).toBe(2)
		expect(FlagService.multiplier(true, nil)).toBe(2)
	end)
 
	it("clamps the number between 1 and the maximum", function()
		expect(FlagService.multiplier(true, 99)).toBe(5)
Figure 10.1

Module m10 (Jest-Lua): Where are Jest and JestGlobals declared in wally.toml at m14-ship, and why does test.project.json exist separately from default.project.json?

  1. Under [dev-dependencies] in DevPackages/, mapped only by test.project.json so test libraries never ship in the production place
  2. Under [dependencies] so every player downloads Jest on join
  3. Inside ServerPackages/ so ProfileStore can call Jest at runtime
  4. Inside StarterPlayerScripts so LocalScripts run unit tests in live servers
Answer

Under [dev-dependencies] in DevPackages/, mapped only by test.project.json so test libraries never ship in the production place. Putting Jest under [dev-dependencies] and mapping DevPackages only in test.project.json keeps test code and libraries completely out of the shipped game.

		local held = afterAbsorb ~= nil and afterAbsorb.Health > healthBefore - 5
Figure 10.2

Module m10 (Integration playtests): Why does the shield test check health > healthBefore - 5? With before = 85, what does this print for a heal to 86 and for an unblocked drone hit to 70?

local before = 85
print(86 > before - 5, 70 > before - 5)
  1. true false
  2. true true
  3. false false
  4. false true
Answer

true false. The default Health script regens ~1 HP/s, so strict equality flakes when health rises from 85 to 86. Comparing against before - 5 passes a heal (86 > 80) and catches a 15-point drone hit (70 > 80 is false).

        "StreamingEnabled": true,
        "StreamingMinRadius": 128,
        "StreamingTargetRadius": 512
Figure 10.3

Module m10 (Performance and mobile budgets): At m14-ship, default.project.json sets Workspace.StreamingEnabled = true with StreamingMinRadius = 128 and StreamingTargetRadius = 512. What is the main tradeoff on low-memory phones?

  1. The engine streams far parts out to stay inside mobile RAM budgets, so client scripts cannot assume distant Workspace parts already exist without WaitForChild or guards
  2. StreamingEnabled automatically doubles server Heartbeat speed and eliminates all lag
  3. Parts inside 128 studs are never replicated to phones
  4. StreamingEnabled turns off all ParticleEmitters and Audio
Answer

The engine streams far parts out to stay inside mobile RAM budgets, so client scripts cannot assume distant Workspace parts already exist without WaitForChild or guards. StreamingEnabled saves client memory on mobile by loading distant geometry on demand, which means client code must handle missing or late-arriving Workspace instances safely.

Module m10 (Parallel Luau): A Script inside an Actor calls task.desynchronize() to compute heavy path or noise math across CPU cores. What must it do before mutating Workspace Instance properties?

  1. Call task.synchronize() first, because writing unsafe Instance properties in parallel throws an error
  2. Call task.wait(5) so other threads finish
  3. Nothing; every Roblox property is thread-safe after desynchronize()
  4. Destroy the Actor before writing to Workspace
Answer

Call task.synchronize() first, because writing unsafe Instance properties in parallel throws an error. Heavy math runs in parallel after task.desynchronize(), then the script returns to the serial phase with task.synchronize() before writing to the DataModel.

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

11Module m11: safety, localization, flags, publishing, marketing and DevEx

-- PolicyService is a live-ops check, not a shop change. The call is per
-- player and can fail in Studio. When ArePaidRandomItemsRestricted comes
-- back as a boolean it is stored on the player; otherwise the attribute
-- stays unset. A failure never throws.
Figure 11.1

Module m11 (Safety and compliance): If PolicyService:GetPolicyInfoForPlayerAsync(player) fails on a network hiccup, how should a studio gate a restricted feature like paid random items?

  1. Fail closed (treat the feature as restricted until a successful check allows it), and never let the error crash the join path
  2. Fail open and show the restricted feature so players do not complain
  3. Kick every player whenever PolicyService times out
  4. Ask the client what country it is in
Answer

Fail closed (treat the feature as restricted until a successful check allows it), and never let the error crash the join path. Policy checks must wrap calls in pcall and fail closed when uncertain, so a transient error never exposes a restricted feature to a player whose region forbids it. PolicyService does not cover social links. Direct links to outside sites are not allowed inside a game for any player, so they go in the social link fields on the game's details page.

function Localize.t(key: string, args: ShopLabels.Args?): string
	local current = translator
	if current ~= nil then
		local ok, text = pcall(function()
			return current:FormatByKey(key, asText(args))
		end)
		if ok and typeof(text) == "string" then
			return text
		end
	end
	return ShopLabels.english(key, args)
Figure 11.2

Module m11 (Localization): Why does Beacon Yard translate keys with placeholders like "{n} coins" via Translator:FormatByKey instead of concatenating translated fragments like "You have " .. coins .. " coins"?

  1. Word order and grammar vary across languages, so a full template with named {placeholders} lets translators move numbers naturally
  2. Luau does not allow .. on strings inside LocalScripts
  3. FormatByKey only accepts numbers, never strings
  4. Concatenation skips English completely
Answer

Word order and grammar vary across languages, so a full template with named {placeholders} lets translators move numbers naturally. In French ('{price}, il en manque {short}') and Spanish ('{price}, faltan {short}'), the number sits at the end instead of the middle. Whole-sentence keys with {placeholders} let every language read naturally.

function FlagService.multiplier(enabled: unknown, value: unknown): number
	if enabled ~= true then
		return 1
	end
	if typeof(value) == "number" and value == value then
		return math.clamp(value, 1, Config.EVENT_MAX_MULTIPLIER)
	end
	return Config.EVENT_DEFAULT_MULTIPLIER
Figure 11.3

Module m11 (Feature flags and rollback): Someone accidentally enters 999 for scrap_rush_multiplier in Experience Configs, AND in another incident you click Restore on version 40 in Creator Hub Version History after version 41 broke the shop. What happens in each case?

  1. FlagService clamps 999 down to Config.EVENT_MAX_MULTIPLIER (5); Restore creates a new version from v40 that does not go live until you publish it and restart outdated servers
  2. Coins pay 999x until a full deploy; Restore pushes v40 to live players instantly
  3. ConfigService rejects any number over 2 automatically; Restore deletes v41 permanently
  4. Both changes happen on the client without touching the server
Answer

FlagService clamps 999 down to Config.EVENT_MAX_MULTIPLIER (5); Restore creates a new version from v40 that does not go live until you publish it and restart outdated servers. Always clamp live-ops config values in server code (EVENT_MAX_MULTIPLIER = 5). And in Version History, Restore saves a copy as a new version; players stay on the old version until you publish and restart servers.

Module m11 (Marketing): You run a thumbnail test on your experience page. Thumbnail B leads Thumbnail A after only 40 impressions. What should you do?

  1. Wait until each thumbnail has enough impressions for a reliable play-through rate comparison before declaring a winner
  2. Delete Thumbnail A immediately because 40 views is final proof
  3. Change the game title, icon and thumbnails all on the same day so you test everything at once
  4. Pay players coins to click your thumbnail
Answer

Wait until each thumbnail has enough impressions for a reliable play-through rate comparison before declaring a winner. Thumbnail tests compare play-through rate (qualified plays per impression). Switching after 40 impressions chases noise; change one variable at a time and wait for statistical confidence.

Luau
-- Check the Developer Exchange arithmetic before answering question 35.
local rate = 0.0038
print(string.format("75000 Earned Robux = $%.2f", 75000 * rate))
Figure 11.4. Expected output: 75000 Earned Robux = $285.00

Module m11 (Career and DevEx): At the standard Developer Exchange rate of $0.0038 US per Earned Robux, what is the minimum cashout in US dollars for the 30,000 Earned Robux threshold?

Answer

114 US dollars. 30,000 times 0.0038 is 114 US dollars. Always verify current rates and eligibility on Roblox's official Developer Exchange page before budgeting.

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

12Your result and final checklist

Count how many of the 35 questions you answered right on the first try. Every question names its module and carries its skill tags, so you can jump straight back to any lesson where an answer slipped. For platform rules that Roblox owns, always verify against the official documentation: Version History1, Experience Configs2, Developer Exchange3 and Open Cloud4.

Checkpoint

  • I answered at least 28 of the 35 questions correctly on the first try
  • My four Studio-graded capstone projects (Swarm, ProfileStore daily grant, cosmetic trail + localization, and staging ship check) all print TEST PASS on m14-ship
  • My three browser/pure-Luau projects (mobile thumb rule + ShopApp fix, multi-product receipts, and atomic party matchmaking) all pass
  • My repository has green CI, a verified staging deploy via deploy.yml, and zero leaked ids or credentials
  • My experience stays Private until I choose to open it, and I know how to roll back a version in Creator Hub Version History

Recap

  1. The 35-question exam covers every module from m-1 through m11 using Beacon Yard's real m14-ship code, including animation, pathfinding, physics, React, audio, VFX, teleport, MemoryStore, CI, Jest-Lua, performance, Parallel Luau, localization, safety, flags and marketing.
  2. A first-try score of 28 of 35 (80%) is the pass mark; missed questions point directly at the module to revisit.
  3. Your real proof is your extended m14-ship repository, green CI checks, passing Studio playtests and staging deploy.

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 UGC and avatar items: layered clothing and accessories

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