First publish: private cloud place, API access and Ids.local

Publish 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 lesson, about 35 minutes, 7 steps

By the end you can

  • Publish Beacon Yard to Roblox as a private place without releasing it publicly
  • Enable Studio Access to API Services in Experience Settings so DataStores and cloud APIs work in Play
  • Create a git-ignored Ids.local.luau with your own Universe ID and Place ID and verify it with scripts/check-ids.mjs
  • Explain what scripts/gen-assets.mjs generates and why uploaded meshes need a place rebuild

Before this: The wrench: tools, raycasts, tags

Step 1 of 7

Why a local file hits a wall

Press Play on m06-drone-wrench from a local .rbxlx file and look at Output. DataService may print a yellow DataStore unavailable warning and fall back to keeping profiles in memory:

local function getStore(): DataStore?
	if storeResolved then
		return store

Cloud services such as DataStoresDataStoreRoblox's persistent key-value storage for saving player data between sessions.Think of it as a bank vault in another city. need a published PlacePlaceOne world inside an experience, with its own parts, scripts and interface.Think of it as one building on the campus. with Studio API access turned on1. Even sooner, the next lesson (Animation: the Animation Editor, Moon Animator, Animator) uploads a wrench swing animation, and Roblox only lets an ExperienceExperienceA game on Roblox as players see it: one name, one page, one or more places inside.Think of it as a campus with one or more buildings. load animations owned by the same user or group, or ones the owner has granted that experience access to.

An experience is a campus and each place is a building inside it. Until you publish once, your blueprints are still sitting on your desk with no campus address and no cloud vaults attached.

Think of it as A campus of buildings

Server sideRemember: Experiences and places is a campus of buildings.

Choose one

Why does DataService.getStore wrap DataStoreService:GetDataStore in pcall on an unpublished local place file?

Why does DataService.getStore wrap DataStoreService:GetDataStore in pcall on an unpublished local place file?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 2 of 7

Publish privately without going public

Publishing uploads your start place to Roblox's cloud. The game gets a Universe IDUniverse IDThe unique number Roblox assigns to an entire experience (which can hold one or more places).Think of it as the street address of the whole campus, separate from each building's room number. and its start place gets a Place ID2. The game starts private. You and collaborators with Edit access can open it. Members of a group game need the appropriate permissions2. Public release, store icons, thumbnails and Version History wait until Publishing: versions, rollback, store page.

To publish Beacon Yard privately for the first time2:

  1. Build a fresh place file with rojo build -o beacon-yard.rbxlx and open it in Studio.
  2. Open File > Publish to bring up Game details.
  3. Enter a Name, such as Beacon Yard Dev, select a Genre and write a short Description.
  4. Click Save to publish the game privately. If Studio shows Basic Info as in the capture below, fill in the name and description and click Create.

To share a preview, use File > Invite early testers after saving. Choose eligible friends in the dialog and click Invite2.

Roblox Studio
Roblox Studio's File > Publish to Roblox As window on the Basic Info step, with Name set to Beacon Yard, a short Description, Team Create off and the Create button.

Select a numbered pin, or a row below, to read what it marks.

This Studio capture shows Basic Info and Create. Roblox's current publishing guide calls those controls Game details and Save2.

Choose one

You save Beacon Yard Dev from Game details. Who has access by default, before you invite early testers?

You save Beacon Yard Dev from Game details. Who has access by default, before you invite early testers?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 3 of 7

Turn on Studio Access to API Services

Even after publishing, Studio blocks cloud APIs such as DataStores by default so a playtest cannot touch live player data by mistake1. Enable Studio Access to API ServicesStudio Access to API ServicesA per-experience Security toggle that lets Studio Play call cloud services such as DataStores.Think of it as a keycard letting your local test bench open the experience's real cloud vaults. for your private development place1:

  1. Open File > Experience Settings in Studio.
  2. Click Security in the left sidebar.
  3. Turn on the Enable Studio Access to API Services toggle.
  4. Click Save.

Roblox's documentation gives an important warning: Studio accesses the same DataStores as live servers for that experience1. Never turn this toggle on for a live production game; keep it on a separate private development experience. When you later make this experience public (Publishing: versions, rollback, store page), turn the toggle off first, or release from a separate production experience.

Where does it break?“A campus of buildings” is a good picture of experiences and places. Where does it stop being true?

It breaks here. A campus has one copy of each building, but Roblox runs many copies of the same place at once, one per server, and those copies know nothing about each other.

The true model. An experience holds places. Every server runs its own copy of one place for the players on it. Servers share nothing unless the game uses a cross-server service such as DataStores or MessagingService.

Choose one

Two groups join different servers of the same published Beacon Yard place. If one group starts a drill, does it start for the other group?

Two groups join different servers of the same published Beacon Yard place. If one group starts a drill, does it start for the other group?

Press 1 to 2 to choose, Enter to check.

Choose one

Why does Roblox warn against turning on Enable Studio Access to API Services for a live public game?

Why does Roblox warn against turning on Enable Studio Access to API Services for a live public game?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 4 of 7

Find your Universe ID and Place ID

Now collect the two numbers Roblox created for your private experience from the Creator Dashboard:

  • Universe ID: hover over your game's thumbnail on the Creator Dashboard, click the ⋯ button, and choose Copy Universe ID3.
  • Place ID: click your game's thumbnail, open Configurations > Places (or the Places tab) in the left navigation, click the start place (marked with a star icon), and read the number after /places/ in the browser URL (.../places/<PlaceId>/configure)45.

Menu locations, Output shortcuts and copy commands differ slightly between Windows and macOS:

Your system

Windows

  • Studio's File menu sits in the top-left corner of the Studio window (File > Publish and File > Experience Settings).
  • Clear Studio's Output window with Ctrl+K6.
  • In PowerShell inside your beacon-yard folder, create your local ids file from the example:
powershell
Copy-Item src\shared\Ids.local.example.luau src\shared\Ids.local.luau

macOS

  • Studio's File menu sits in the macOS menu bar at the very top of your screen (File > Publish and File > Experience Settings).
  • Clear Studio's Output window with Cmd+K6.
  • In Terminal inside your beacon-yard folder, create your local ids file from the example:
bash
cp src/shared/Ids.local.example.luau src/shared/Ids.local.luau
Match the pairs

Match each setup task to its verified Studio or Creator Dashboard path.

Link to this step · This confused me

Step 5 of 7

Ids.local.luau, gen-assets and check-ids

Beacon Yard ships src/shared/Ids.luau with every account-bound number set to 0. Your own numbers live in src/shared/Ids.local.luau, which .gitignore excludes so your account ids never enter Git. When any script requires Ids, applyLocalOverrides merges your file over the defaults and warns on typos or invalid numbers:

local function applyLocalOverrides()

Two Node scripts in scripts/ work with the same file:

  • node scripts/gen-assets.mjs reads Ids.luau and Ids.local.luau, fills placeholders in assets/templates/, and writes models to git-ignored assets/roblox/ and material variants to assets/materials/. Because Roblox does not let scripts change MeshPart.MeshId directly, and Rojo's live sync works through a script-driven plugin, rojo serve leaves MeshParts empty; rebuild with rojo build -o beacon-yard.rbxlx after generating meshes.
  • node scripts/check-ids.mjs scans every tracked or unignored file outside the three Ids files and fails if it sees a 9-or-more-digit number or an asset URL, stopping real ids from leaking into a commit:
const ALLOWED = new Set(["src/shared/Ids.luau", "src/shared/Ids.local.luau", "src/shared/Ids.local.example.luau"]);
 
// Built in two pieces so this file does not trip its own check.
const ASSET_URL = "rbxasset" + "id://";
// Nine or more digits that are not part of a word, a hex hash or a decimal fraction.
const LONG_NUMBER = /(?<![\w.])\d{9,}(?!\w|\.\d)/g;

Complete this Luau simulation of applyLocalOverrides so it skips unknown keys and non-whole or negative numbers.

Luau
Ctrl Enter runs the cell. Checked by tests
Predict the output

In Beacon Yard's Ids.luau, what happens if Ids.local.luau sets UNIVERSE_ID = 4200, PLACE_ID = 1.5, and BAD_KEY = 10?

return {
	UNIVERSE_ID = 4200,
	PLACE_ID = 1.5,
	BAD_KEY = 10,
}
In Beacon Yard's Ids.luau, what happens if Ids.local.luau sets UNIVERSE_ID = 4200, PLACE_ID = 1.5, and BAD_KEY = 10?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 6 of 7

Publish Beacon Yard and wire your IDs

Other ways pros do this

OptionWhat it isWhen pros pick itTrade-offs
Personal accountPublish under your own Roblox account.Solo learning and course work like Beacon Yard.Harder to share edit access and asset ownership if a team joins later.
Roblox GroupPublish under a Group you own, with role permissions.Any team project or game that may hire collaborators.Requires creating a group and selecting it as Creator on every upload.

Build along

m06-drone-wrench

  • src/shared/Ids.luau
  • src/shared/Ids.local.example.luau
  • scripts/gen-assets.mjs
  • scripts/check-ids.mjs
  1. Build beacon-yard.rbxlx (rojo build -o beacon-yard.rbxlx), open it in Studio, publish privately with File > Publish, then turn on File > Experience Settings > Security > Enable Studio Access to API Services and click Save.

    You should see Studio saves the place privately to Roblox and Experience Settings saves with Enable Studio Access to API Services turned on.

  2. Copy your Universe ID and Place ID from the Creator Dashboard, copy src/shared/Ids.local.example.luau to src/shared/Ids.local.luau, and set UNIVERSE_ID and PLACE_ID (leave the remaining keys out or at 0).

    You should see src/shared/Ids.local.luau holds your Universe ID and Place ID, and git status does not list it as untracked.

  3. Run node scripts/check-ids.mjs and node scripts/gen-assets.mjs, rebuild or connect Rojo, press Play in the published Studio place, and confirm Output no longer shows DataStore unavailable.

    You should see check-ids prints clean, gen-assets reports 0 written and skips unset models cleanly, and Studio Play no longer prints DataStore unavailable.

Choose one

Later, when you add mesh ids to Ids.local.luau and run node scripts/gen-assets.mjs, why does rojo serve leave the MeshParts empty?

Later, when you add mesh ids to Ids.local.luau and run node scripts/gen-assets.mjs, why does rojo serve leave the MeshParts empty?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 7 of 7

Challenges and recap

Level 1, Apprentice

Challenge

Finish the validation check in ids-override-sim above so it matches Beacon Yard's Ids.luau guard rules.

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

Done means

  • Copy only keys that already exist in defaults
  • Reject negative numbers and non-whole numbers
  • All four assertions in ids-override-sim pass

Level 2, Builder

Challenge

Complete the private publish, enable Studio API access, create src/shared/Ids.local.luau, and confirm git status ignores it while node scripts/check-ids.mjs passes.

Start from
The game at milestone m06 (download)

Done means

  • Your Beacon Yard copy is published privately in Studio with Enable Studio Access to API Services turned on
  • src/shared/Ids.local.luau contains your UNIVERSE_ID and PLACE_ID and is ignored by git status
  • node scripts/check-ids.mjs exits with 0 and reports all files clean

Meet the criteria above, then record your own result. No test grades this check.

Choose all that apply

Which of these statements are true about scripts/check-ids.mjs in Beacon Yard?

Which of these statements are true about scripts/check-ids.mjs in Beacon Yard?

Press 1 to 4 to choose, Enter to check.

Recap

  1. File > Publish in Studio creates a private cloud place with a Universe ID and Place ID without releasing publicly.
  2. Turn on File > Experience Settings > Security > Enable Studio Access to API Services only on a private dev experience, never on a live game.
  3. Store your real ids in git-ignored Ids.local.luau, run node scripts/gen-assets.mjs for templates (rebuilding for meshes), and run node scripts/check-ids.mjs to keep ids out of Git.

Experiences and places is a campus of buildings, until a campus has one copy of each building, but Roblox runs many copies of the same place at once, one per server, and those copies know nothing about each other.

Next Animation: the Animation Editor, Moon Animator, Animator

Link to this step · This confused me