The game you build: Beacon Yard

A 3D model of Beacon Yard, the Roblox game you build in this course, laid out from the game's own code. Turn it, switch between day and dusk, and filter it by who runs each part: the server, the client, or stored data. Every pin links to the lesson that builds it.

Every part of the game, as a list

Each part has up to three sides. The colour and the shape say which: copper square for the server, cyan circle for the client, gold diamond for stored data.

  1. Beacon

    The cyan crystal on the pedestal. Holding E on it starts a drill.

    Server
    The server owns the round. The prompt only asks RoundService to start a 40 second drill, and the gate opens while it runs.
    Client
    Your screen shows the glow and the rising motes and plays the start sound. Nothing it does can start a round.
    Stored data
    Surviving a drill is saved as an onboarding step (SurvivedDrill) in your profile.

    Learn it: The round loop: a state machine

    Also: World building in code: MapBuilder, lighting, atmosphere

  2. Coin pad

    One of six gold pads in a ring. A coin floats above each.

    Server
    CoinService pays a touch once per visit, only when you are within 12 studs, and the coin comes back after 4 seconds.
    Client
    The spark burst and the pickup sound play on your screen once the server has paid.
    Stored data
    The 5 coins go into your profile. The leaderstats number you see is only a display copy.

    Learn it: Coins: touch, debounce, respawn, leaderstats

    Also: Client and server: who owns what

  3. Drone

    The enemy. It hovers over the yard and goes for the nearest player.

    Server
    The server moves it every frame toward the nearest player at 12 studs per second, stops 3 studs short, and decides every hit and stun.
    Client
    Each client spins the rotors itself. A spinning blade is a look, not a rule, so it never travels over the network.

    Learn it: The drone: movement, targeting, damage

    Also: NPCs and pathfinding: the scrap crawler

  4. Wrench

    The tool every player spawns with. Here it floats above the spawn pad.

    Server
    A swing is only a request. The server checks it, finds the hit with a raycast that can only see the Drone tag, and deals 34 damage.
    Client
    Your client plays the swing animation and shows the spark when the animation's Impact marker fires.

    Learn it: The wrench: tools, raycasts, tags

    Also: Security: never trust the client

  5. Shop

    The quartermaster's block in the corner. Speed 25, Shield 40.

    Server
    ShopService checks the item, the price from Config and your saved coins before it spends anything. The button never decides.
    Client
    The shop window is React UI on your device. Its buttons only send a purchase request.
    Stored data
    A Speed purchase is saved in your profile (speedOwned), so it is still there next visit.

    Learn it: UI frameworks, part 1: React-lua, elements, props and state

    Also: Remotes: events, functions, unreliable, buffers

  6. Your profile

    Not a part you can touch: the saved record for each player, shown here as a card.

    Server
    Only the server reads and writes the profile. ProfileStore locks it to one server at a time so two servers cannot overwrite each other.
    Client
    The client never sees the profile. It sees copies the server chooses to publish, like leaderstats and your shield count.
    Stored data
    Your coins, whether you own Speed, and your onboarding step. Saved on a timer and when you leave.

    Learn it: ProfileStore: the library pros use

    Also: DataStores: saving without losing a single coin

What you are looking at

The three sides

Server: Runs on Roblox's computers. It owns the rules and decides what is true. Client: Runs on each player's device. It shows things and asks the server for changes. Stored data: Saved between visits in the player's profile, so it survives leaving.

How true to the game it is

Positions, sizes and numbers come from the game's MapBuilder and Config at tag m14. The meshes the game uploads to Roblox are not in its repository, so the beacon, coin, drone and wrench are low-poly stand-ins built to the same sizes. The slow spin of the coins and the beacon crystal is added here; the drone's chase follows the game's rule (nearest player, 12 studs a second, stop 3 short) but plays as a loop.

No 3D? No problem

The list above says everything the view does. The view loads only on this page, pauses when you scroll away, and holds still if your device asks for reduced motion.