Spaced review
Questions from the lessons, brought back just before you would forget them. A few minutes is plenty, and missing a day costs nothing. Your boxes live in this browser; there is no account.
No review questions yet
Finish your first lesson and its questions start arriving here.
Continue learningAll 75 review questions
The same questions, with answers, for reading without the scheduler.
An agent says all tests passed. What is the first thing to do?
Read the test output and the diff yourself. A summary describes what the agent believes. The output and the diff show what happened.
From AI-assisted development: Studio MCP, Assistant, Blender MCP
What should you do with a new test before trusting its pass?
Run it on the unchanged code and see it fail. A test that already passes on the unchanged code proves nothing about your change.
From AI-assisted development: Studio MCP, Assistant, Blender MCP
You place a static scrap crate in Workspace and forget to set Anchored = true. What happens when you press Play?
Physics acts on it immediately, so it falls or gets pushed around by players. Unanchored parts are simulated by the physics engine. Static scenery and props need Anchored = true so gravity and collisions do not move them.
Why does Beacon Yard's DataService call session:Reconcile() right after StartSessionAsync?
To fill in any new template fields from DataMigration.template() missing from older saved profiles. Reconcile() compares the loaded profile against the template and adds any missing keys without overwriting existing saved values.
In MonetizationService.process, when should ProcessReceipt return Enum.ProductPurchaseDecision.PurchaseGranted?
Only after the coins are added, the profile is saved and the receipt id is recorded. Returning PurchaseGranted tells Roblox the transaction is final. Returning NotProcessedYet on failure lets Roblox safely redeliver the receipt.
A frame is 400 pixels wide. What pixel width does UDim2.new(0.5, -20, 0, 40) compute for its X axis?
local parentWidth = 400 local xScale, xOffset = 0.5, -20 print(xScale * parentWidth + xOffset)180. 0.5 * 400 = 200, and 200 + (-20) = 180 pixels.
Why does Beacon Yard's Analytics.luau live in src/server/ and wrap its AnalyticsService calls in pcall?
Analytics events must be sent from the server of a published place, and they throw in an unpublished Studio session. AnalyticsService events are server-only and require a published experience, so Analytics.luau runs on the server and uses pcall to warn once instead of crashing local tests.
Config.DRONE_MAX_HEALTH is 100 and Config.WRENCH_DAMAGE is 34. How many hits destroy one drone?
3. Three hits. Two leave 32 health.
At m14-ship, how does a returning player's profile receive a new saved field such as lastDaily?
ProfileStore's session:Reconcile() copies missing keys from DataMigration.template(). Reconcile() fills missing keys from DataMigration.template() while keeping all existing player data intact.
When PassService enables a cosmetic TrailPass on a player's character, what should happen to Humanoid.WalkSpeed?
Nothing: a cosmetic pass must never alter WalkSpeed or combat stats. A cosmetic trail pass attaches visual feedback only and leaves WalkSpeed untouched.
From Capstone, part 2: cosmetic pass trail, localization and thumb targets
In a multi-product ProcessReceipt handler, what must happen if the profile save succeeds but writing the receipt record fails?
Roll back the granted coins, leave seen untouched, and return NotProcessedYet so Roblox retries cleanly. Without a stored receipt record, a retry would pay a second time. Rolling back the coins and returning NotProcessedYet keeps the retry safe while the server is still running. The durable design keeps the purchase id in the same save as the coins.
From Capstone, part 3: multi-product receipts and party matchmaking
Where do ROBLOX_API_KEY and IDS_LOCAL_LUAU belong when using m14-ship's .github/workflows/deploy.yml?
In a protected GitHub Actions environment so fork PRs cannot read them and no secret enters Git. Environment secrets stay out of Git, cannot be read by fork PRs, and can require a human reviewer before publishing.
From Capstone, part 4: ship it to staging (private publish, CI and deploy)
At m14-ship, which of Beacon Yard's six remotes is fired by the server at every player rather than by a client?
RoundState. RoundState is fired with FireAllClients by RoundService. ShopBuy, Swing and SetSetting arrive from clients and are validated on the server.
How many studs from the player's Head can a wrench swing start?
8. CombatService rejects any Swing origin more than 8 studs from the player's Head. The ray itself is 14 studs long.
Both CoinService and ShopService call require on DataService on the server. How many copies of DataService's module table exist in that server?
One: require runs the ModuleScript once per side and caches the returned table. require runs a ModuleScript once in a given Luau context and hands the same cached table to every caller, which is why CoinService and ShopService share one DataService state.
What does this print?
local prices = { Speed = 25 } print(prices["speed"])nil. Reading a missing key from a Luau table returns nil quietly rather than throwing. Only indexing nil later throws an error.
In what order do these three lines print?
print("A") task.defer(function() print("B") end) print("C")A, C, B. task.defer schedules the function for the next resumption point after the current thread finishes, so A and C print before B.
Why does Beacon Yard map src/server into ServerScriptService instead of ReplicatedStorage?
ServerScriptService never replicates to clients, keeping server code off players' devices. Everything in ReplicatedStorage is copied to every client. ServerScriptService stays strictly on the server.
CoinService checks distance with (a - b).Magnitude. What does this print?
local a = Vector3.new(0, 0, 0) local b = Vector3.new(3, 0, 4) print((b - a).Magnitude)5. The offset is (3, 0, 4), and sqrt(3*3 + 4*4) is sqrt(25) = 5 studs.
A client calls ShopBuy:FireServer("Speed"). Where does the first argument, player, in OnServerEvent:Connect(function(player, item) ... end) come from?
The Roblox engine supplies it on the server; the client cannot forge it. Roblox always prepends the sending Player on the server. Every argument after player comes from the client and must be validated.
Why does src/server/init.server.luau call CombatService.start() before MapBuilder.build() and DataService.start()?
The wrench tool must be in StarterPack before the first character spawns, and later services can yield. StarterPack only copies tools when a character spawns. Calling CombatService.start() first ensures the wrench is ready before anything yields.
An exploiter sets their local leaderstats.Coins.Value to 9999 and fires ShopBuy("Speed"). What happens on the server?
ShopService checks DataService's server balance and refuses the purchase if they have fewer than 25 coins. leaderstats is only a display copy. ShopService calls DataService.trySpend on the server's profile table, so local edits cannot buy anything.
What does this simplified spend check print?
local coins = 20 local price = 25 local ok = coins >= price if ok then coins -= price end print(ok, coins)false 20. 20 >= 25 is false, so the if branch does not run and coins stays 20.
From Luau basics, part 1: Luau-specific text, decisions and pcall
A LocalScript recolours Workspace.Yard.Base to bright green. Who sees bright green?
Only that player's client; the server and other players still see the original colour. Replication runs from the server down to clients. Client-side edits to Workspace stay local to that client.
A client fires ShopBuy("Speed") and sends a price of 0 with it. What price does the server charge?
Config.SPEED_PRICE, read on the server. ShopService reads the price from Config and takes it with DataService.trySpend. Anything the client sends besides the player is untrusted.
A player touches the same coin twice in one frame. How many times is the coin paid?
1 time. CoinService sets claimed on the first valid touch and returns early after that, so a coin pays once.
Which way do attributes set on the server travel?
Down to every client. A server attribute is copied to clients. A client can change its own copy, and it never travels back up.
You connect a handler and never disconnect it. What can happen when the object that owns the event is destroyed and recreated often?
Handlers pile up and keep running. Each Connect adds a handler. Without a Disconnect, handlers accumulate and can run on stale state.
The server casts a ray of Config.WRENCH_RANGE studs when a swing arrives. How many studs?
14 studs. WRENCH_RANGE is 14, and the ray only sees parts tagged as drones.
DataService.get calls error("No profile for " .. player.Name, 2). What does the second argument, 2, do?
Points the error's file and line at the caller of DataService.get instead of inside DataService.get. Passing level 2 blames the call site that passed a missing player, sending you straight to the caller that broke the contract.
Which checks can Beacon Yard's GitHub Actions CI run automatically on every push without opening Roblox Studio?
StyLua formatting, Selene lint, luau-lsp type checking, check-ids.mjs and Rojo builds. CI runs the pinned CLI tools (StyLua, Selene, luau-lsp, Rojo) and check-ids.mjs on every push, while Studio playtests and Jest-Lua runs happen in Studio.
Using Beacon Yard's Config.luau values, what does this print after two wrench hits on a full-health drone?
local DRONE_MAX_HEALTH = 100 local WRENCH_DAMAGE = 34 local hp = DRONE_MAX_HEALTH - WRENCH_DAMAGE * 2 print(hp, hp <= 0)32 false. Two hits deal 68 damage, leaving 32 health (hp <= 0 is false). A third hit brings the drone down.
CoinService ignores a touch when (rootPart.Position - coin.Position).Magnitude > 12. What exploit does that check stop?
A client forging touch events from across the yard to collect coins it is nowhere near. Because a player owns their character's physics, touch events can be triggered remotely; checking distance on the server rejects pickups beyond 12 studs.
Why does Beacon Yard commit rokit.toml with exact version pins for Rojo, StyLua, Selene, Wally and luau-lsp?
So every contributor and CI run uses the exact same tool versions and gets the same lint and build results. Pinned versions eliminate version drift between developer machines and CI, preventing surprise formatting or lint failures.
From The toolchain: Rokit, Wally, pesde, StyLua, Selene, luau-lsp
A publish operation finishes with isPublished set to false. What happened?
The upload was saved as a version players do not see. If the request does not say published is true, the upload is saved as a new, unpublished version. A deploy job should fail on that.
You roll the game's code back after a bad release. What does not roll back?
Data already saved in data stores. A rollback replaces code. Saved data stays in whatever format the newer code wrote, so data changes must be backward compatible.
A manifest asks for 0.4.2 with no prefix. Which release does it accept?
0.4.9. A bare version is a caret requirement. For 0.4.2 it means at least 0.4.2 and below 0.5.0, so 0.4.9 fits.
What can a Lune script you downloaded do when you run it?
Anything your user account can do, including reading your files. Lune scripts have full access to the device. Read untrusted scripts first or run them in a sandbox, container or virtual machine.
At the m03-coins-count milestone, which gameplay numbers does Beacon Yard's shared Config.luau define?
COIN_VALUE = 5 and COIN_RESPAWN_SECONDS = 4. The tagged Config defines COIN_VALUE as 5 and COIN_RESPAWN_SECONDS as 4, so both server and client code read the same coin settings.
A coin pad starts with a coin and spawns another every 4 seconds. If every coin is collected immediately, how many coins does the pad award by 8 seconds?
local spawns = 0 for second = 0, 8, 4 do spawns += 1 end print(spawns * 5)15. The coins spawn at 0, 4 and 8 seconds. Three coins at 5 coins each award 15 coins.
Beacon Yard's walls are 10 studs tall and their Position.Y is 5. What is the Y position of a wall's top face?
local centreY = 5 local height = 10 print(centreY + height / 2)10. The wall centre is at Y = 5 and half its height is 5, so its top face is at Y = 10 studs.
At m03-coins-count, where does Rojo place the real CoinService module in Studio's data model?
ServerScriptService.Server.CoinService. src/server/CoinService.luau becomes a child ModuleScript of ServerScriptService.Server, so the path is ServerScriptService.Server.CoinService.
You edit Config in Studio, then save src/shared/Config.luau in VS Code while Rojo is connected. What happens to the Studio-only edit?
Rojo overwrites it with the file from the repository. The repository files are the source of truth. Rojo copies the saved file into Studio and replaces Studio-only edits, so lasting changes belong in VS Code.
From Set up your machine, part 3: connect, play, and the optional extras
What does ProfileStore do that Beacon Yard's hand-rolled DataService did not?
Autosave every 300 seconds, which also renews the session lock. DataService had no autosave, so its 45-second lock looked expired in a long session. ProfileStore autosaves and renews.
Which store holds a global top-100 score list?
An OrderedDataStore. An OrderedDataStore keeps whole-number scores and returns them sorted. leaderstats only lives as long as the server.
How many players can one TeleportAsync call move at most?
50 players. No more than 50 players can be teleported with a single TeleportAsync call.
Where is a Robux purchase's grant decided?
On the server, in ProcessReceipt. The server grants and records, then returns PurchaseGranted. The client only shows a prompt.
An emitter has Rate 12 and an average Lifetime of 2 seconds. About how many particles are alive at once?
24. 12 per second times 2 seconds is about 24 particles alive at any moment.
During Play, why do you call ServerScriptService.RunGameTests:Invoke() instead of requiring DataService directly from the server command bar?
The command bar has its own require cache, so requiring DataService there creates a second, empty copy. Invoking RunGameTests runs inside the live server script's require cache, where real player profiles and services live.
In an Open Cloud deployment pipeline, why publish a new build to a staging place before production?
To verify the built place and live Roblox services on real servers before players receive the update. Staging catches asset, permission, DataStore and runtime issues in a real Roblox server without breaking live players.
With Workspace.StreamingEnabled turned on, why can a LocalScript crash if it immediately indexes workspace.Yard.Beacon?
Parts outside the client's streaming radius may not exist on that client yet, so WaitForChild is needed. Under StreamingEnabled, instances stream in and out with distance, so client code must wait for or guard against missing instances.
What does this pure trySpend rule (tested by Beacon Yard's Jest-Lua suite) print?
local function trySpend(coins, amount) if amount <= 0 or coins < amount then return false, coins end return true, coins - amount end print(trySpend(30, -5))false 30. amount <= 0 catches negative or zero amounts and returns false with the balance unchanged, stopping a negative purchase from adding coins.
You published a private test copy of Beacon Yard, but DataStore calls still warn that API access is unavailable in Studio. Which setting did you miss?
Experience Settings > Security > Enable Studio Access to API Services. Publishing creates the cloud place, and turning on Enable Studio Access to API Services under Security allows Studio Play sessions to read and write DataStores.
From First publish: private cloud place, API access and Ids.local
Why do your own Roblox asset and product ids go into src/shared/Ids.local.luau instead of src/shared/Ids.luau?
Ids.local.luau is git-ignored so account-specific ids never enter commits or pull requests. Ids.luau holds safe 0 defaults in Git, while Ids.local.luau overrides them locally without leaking private ids into version control.
From First publish: private cloud place, API access and Ids.local
On a fresh clone of Beacon Yard, why does rojo build -o beacon-yard.rbxlx fail if you skip wally install?
default.project.json maps the git-ignored Packages/ and ServerPackages/ folders that wally install creates. Packages/ and ServerPackages/ (React-lua, ProfileStore, Jest-Lua) are not committed to Git, so wally install must create them before Rojo builds.
From Set up your machine, part 3: connect, play, and the optional extras
Converting a Blender Z-up coordinate (x, y, z) to Roblox Y-up uses (x, z, -y). What does this print?
local x, y, z = 2, 5, 3 print(x, z, -y)2 3 -5. The minus sign on y keeps the conversion a true 90-degree rotation instead of a mirror reflection, turning (2, 5, 3) into (2, 3, -5).
From Blender basics for Roblox, part 1: the window, the camera and the stud
Why does Beacon Yard keep permanent coin balances in ProfileStore (DataStore) and the match queue in MemoryStore?
MemoryStore is fast and shared across servers, but its entries expire by TTL and are never permanent storage. MemoryStore is built for short-lived, high-throughput cross-server state like matchmaking queues; durable player data belongs in DataStores via ProfileStore.
From MemoryStore and MessagingService: matchmaking across servers
How do you apply a full set of PBR texture maps (ColorMap, NormalMap, RoughnessMap, MetalnessMap) to a MeshPart in Roblox?
Add a SurfaceAppearance child to the MeshPart, or assign a MaterialVariant in MaterialService. SurfaceAppearance (per MeshPart) and MaterialVariant (reusable across parts) both hold the four PBR maps.
From PBR textures: maps, Material Maker, Substance and CC0 libraries
In every Beacon Yard diagram, what do copper, cyan and gold stand for?
Copper is the server, cyan is the client, and gold is saved data. Every diagram uses copper for the server, cyan for the client and gold for stored data so ownership is obvious at a glance.
With rojo serve connected, you type a comment into Config inside Studio, then save src/shared/Config.luau in VS Code. What happens to your Studio comment?
Rojo overwrites it, because sync copies one way from disk into Studio. Rojo is a one-way photocopier from your repository files to Studio. Always edit .luau files in VS Code so changes stay in Git.
From Set up your machine, part 3: connect, play, and the optional extras
When you press Play on a fresh clone of Beacon Yard, Output prints warnings starting with [Ids]. Why?
Account-bound ids ship as 0, so those features switch off until you add your own ids. Every account-bound id in Ids.luau defaults to 0 so a fresh clone runs cleanly without private ids, printing one [Ids] warning per disabled feature.
From Set up your machine, part 3: connect, play, and the optional extras
What does this Luau snippet print?
local coins = 5 coins += 10 print(coins)15. coins starts at 5, coins += 10 adds 10 to make 15, and print outputs 15.
Why start a Studio challenge on a fresh branch or worktree from m14-ship instead of editing main directly?
It keeps each challenge attempt isolated so main stays clean and easy to return to. A branch or worktree based on m14-ship gives you the Course Runner in an isolated workspace you can switch away from or remove afterwards.
A CODEOWNERS file has a * rule, then a *.md rule, then a /src/ rule. Which rule decides the owner of src/NOTES.md?
The /src/ rule, because it is the last that matches. When several lines match a path, the last one wins. General rules go first and specific ones last.
Why does Beacon Yard keep its code and project file in Git but not the built place file?
The place is built from the files, and a binary place file cannot be merged. rojo build can recreate the place from source at any time. A binary place file has no lines to merge, so two edits conflict and one must win.
When you export a rigged mesh like Beacon Yard's drone from Blender as FBX and import it into Studio, what drives its deformation at runtime?
The Bone hierarchy and vertex weights imported inside the MeshPart. Roblox imports the Blender armature as Bone instances inside the MeshPart and deforms vertices using the exported skinning weights.
From Rigging and skinning in Blender, part 1: an armature for the drone
PolicyService:GetPolicyInfoForPlayerAsync throws a transient error when a player joins. How should your compliance gate behave?
Fail closed: keep age- or region-restricted features turned off until policy info succeeds. Failing closed keeps restricted features (such as paid random items or external links) off when policy lookup fails, avoiding policy violations.
Why does Beacon Yard's FlagService clamp the Scrap Rush coin multiplier against Config.EVENT_MAX_MULTIPLIER (5)?
So a typo in Experience Configs (like 50 instead of 2) cannot break the live coin economy. Clamping remote config values in code puts a hard safety ceiling on live-ops dials without needing a code redeploy.
You split 10 independent path jobs evenly across 4 Parallel Luau Actors. What is the maximum number of jobs any one Actor receives?
local jobs = 10 local actors = 4 print(math.ceil(jobs / actors))3. Two actors take 3 jobs and two take 2 jobs, so the busiest actor runs 3 jobs.
Why does CrawlerService wait at least Config.CRAWLER_MIN_REPATH_SECONDS (0.5 s) between path recomputations instead of calling Path:ComputeAsync every frame?
Recomputing navigation paths every frame wastes server CPU and causes movement jitter. Throttling repaths by time (0.5 s) and target movement distance (6 studs) keeps server CPU low and crawler motion steady.
ShopBuy arrives on the server with the arguments (player, "Speed"). Which of them can the server trust without a check?
Only player, which the engine fills in. The engine stamps the sending player. Every other argument comes from the client and is checked: the item name against the known items, the price against Config.
A LocalScript sets the beacon's colour to green. Who sees green?
Only that player. Changes a client makes stay on that client. Replication runs from the server down.
RoundService publishes each phase change in two ways. Which pair is it?
Workspace attributes RoundPhase and RoundEndsAt, and the RoundState remote the HUD listens to. publish sets the RoundPhase and RoundEndsAt attributes on Workspace and fires RoundState to the clients. The HUD redraws its phase label when RoundState arrives.
In studs, how long is the ray the server casts when a player swings the wrench?
14 studs. Config.WRENCH_RANGE is 14. CombatService casts its own ray of that length on the server instead of trusting the client's claim of a hit.
CoinService ignores a touch when the player's root part is more than how many studs from the coin?
12 studs. The server rejects a pickup when the root part is more than 12 studs from the coin, so a forged touch from across the yard does not pay.