Module 4

Gameplay systems

The core of Beacon Yard: world, coins, rounds, drone, wrench, animation, NPCs, physics, players and input.

Start lesson 1: Core loop design: act, reward, spend, repeat
Lessons
12
Time
14.5 hours
Practice
13 code cells, 112 questions
You finish with
The round m05-the-round
Drone and wrench m06-drone-wrench
The crawler m08-crawler
0 of 12 finished

Lessons

  1. 1Core loop design: act, reward, spend, repeatDesign a game's core loop before building its systems. Trace Beacon Yard's real Config.luau numbers across coin pads, drill rounds, the shop, session pacing and the first 60 seconds.Concept, 45 min
  2. 2World building in code: MapBuilder, lighting, atmosphereBuild a Roblox map in Luau instead of by hand. Read Beacon Yard's MapBuilder and WorldLook, change the walls, the lighting and the atmosphere, and learn when studios build in code.Project, 70 min
  3. 3Coins: touch, debounce, respawn, leaderstatsMake a Roblox coin pickup that cannot be farmed. Follow Beacon Yard's CoinService through Touched, a per-player debounce, a distance check, a respawn timer and the leaderstats leaderboard.Project, 70 min
  4. 4The round loop: a state machineBuild a round loop for a Roblox game as a state machine. Read Beacon Yard's RoundService, publish phases with attributes and a remote, and count down the same clock on every client.Concept, 70 min
  5. 5The drone: movement, targeting, damageScript an enemy drone for a Roblox game. Move it on the server with Heartbeat and PivotTo, target the nearest player, deal damage with a distance check and a per-player cooldown, and stun it.Project, 70 min
  6. 6The wrench: tools, raycasts, tagsMake a melee weapon for Roblox that cannot be cheated. Build Beacon Yard's wrench Tool, send a swing request, validate it on the server and hit the drone with a raycast filtered by a CollectionService tag.Project, 70 min
  7. 7First publish: private cloud place, API access and Ids.localPublish Beacon Yard privately before uploading animations or testing DataStores. Enable Studio Access to API Services, configure Ids.local.luau, and run gen-assets and check-ids.Tool, 35 min
  8. 8Animation: the Animation Editor, Moon Animator, AnimatorLearn Roblox animation from the wrench swing. Author keyframes in the Animation Editor, compare Moon Animator 2 and Blender, play tracks with Animator, set priorities and weights, use markers, and publish with the right owner.Tool, 80 min
  9. 9NPCs and pathfinding: the scrap crawlerMake a Roblox NPC that walks around obstacles. Build Beacon Yard's scrap crawler with PathfindingService, waypoints, blocked events, re-pathing, costs and modifiers, a state machine, and server-side performance.Project, 75 min
  10. 10Physics: constraints, assemblies, network ownershipLearn Roblox physics from Beacon Yard's exhibit. A hinged sign, a roped crate and welded meshes teach constraints, assemblies and network ownership, and why the drone stays anchored.Concept, 85 min
  11. 11Players, characters, teams and chatPlayers, characters, teams and chat in a Roblox game. Follow Beacon Yard's join flow and Drillers team, post system lines with TextChatService, filter player text, and meet today's chat age checks.Concept, 75 min

The game at the end of this module

Also works on m07-feel, which finishes in a later module.