FFORGE

Pillar guide · 11 min read · Updated November 23, 2026

How to make a Roblox game with AI, step by step

To make a Roblox game with AI, connect an AI agent to your own place in Roblox Studio, give it a short written brief, and build in this order: the core loop, server-side rules, saving, a playtest after every step, then UI, monetization and publishing. The order matters more than the tool. Most AI-built games that break were built UI first and rules last, so the money and the saving never worked.

The short version

  1. Pick one small genre you can finish in a weekend: obby, tycoon or clicker simulator.
  2. Connect the agent to Studio so it edits the real place, not a chat window you copy from.
  3. Write a brief: genre, core loop, currency, the first ten minutes, what is out of scope.
  4. Build the core loop and keep every number in one config module.
  5. Put the server in charge of rewards, purchases and stats.
  6. Save progress with session locking, then rejoin to prove it.
  7. Playtest after every message: console read plus screenshot.
  8. Then UI, a phone check, game passes, and publishing.

Step 1: pick a game you can actually finish

The single biggest reason first games die is scope. An AI agent makes it cheap to add features, so beginners keep adding them and never ship. Choose a genre whose core loop fits in one sentence:

Leave combat, open-world RPGs and anything with trading for your third or fourth game. They need many systems working together, and an agent that is right 95% of the time per system is wrong somewhere in a game with twenty of them.

If a famous Roblox game inspired you, make an original game in that style. Do not copy its name, characters, map, art, sounds or UI. Every genre guide on this site teaches its own original version for that reason.

Step 2: connect the AI to Roblox Studio

There are three ways people use AI for Roblox: a chat window you copy code out of, a website that generates a game outside Studio, and an agent connected to Studio that edits your actual place. Only the third one can see the Explorer, run a playtest and read the errors, which is what turns "here is some code" into "here is a working game". The AI Roblox game builder overview compares the three.

Studio ships with a built-in MCP server that agents connect to. In our Claude setup guide the switch is under Assistant ▸ ⋯ ▸ Manage MCP Servers ▸ Enable Studio as MCP server. That menu path matched Roblox's documentation when we last checked it on November 19, 2026; we could not re-check Roblox's site on November 23, 2026, so if the menu has moved, follow Studio's current Assistant settings. If the connection fails, see Studio MCP not connecting.

With Forge, the agent side is the Forge Bridge, a small Windows app that pairs your Studio to the Forge web app. With Claude Code, Cursor or Codex you connect the client yourself; the MCP explainer covers how that works.

Step 3: write a one-paragraph brief

An agent with no brief invents a game, and every later message fights that invention. Write the brief once and paste it as your first message:

Brief: an original clicker simulator about mining crystals.
Core loop: click to mine, sell crystals for Coins, buy pickaxe upgrades
that mine faster, unlock a second cave at 10x the first cave's prices.
Currency: Coins only for now (shown in leaderstats).
First ten minutes: first upgrade within 30 seconds, second cave around
minute 8. Out of scope for now: pets, trading, Robux purchases, combat.
Do not build anything yet. Reply with the folder layout and the list of
scripts you will create, then wait.

The last line is the useful habit: make the agent plan before it builds. Reading a ten-line plan costs you a minute and catches a wrong assumption before it becomes forty files.

Step 4: build the core loop first

The core loop is the thing the player does every few seconds: act, earn, spend, act faster. Build it before any menus, shops or effects, because everything else hangs off its numbers. Ask for every price and multiplier in one shared config module, so the shop UI and the server read the same values and you can rebalance without hunting through scripts.

Build the core loop from the brief. Put all prices in a ModuleScript at
ReplicatedStorage.Config.Upgrades, read by both the server and the UI.
Upgrade cost = base * growth ^ level, growth 1.15. Then playtest: click
20 times, buy the first upgrade, confirm Coins go down and mining speeds
up. Read the console and screenshot before you report.

The shape of that config, so you know what to expect back:

-- ReplicatedStorage.Config.Upgrades (ModuleScript)
local Upgrades = {}

Upgrades.List = {
	Pickaxe = { base = 25, growth = 1.15, maxLevel = 50 },
	Backpack = { base = 100, growth = 1.35, maxLevel = 25 },
}

function Upgrades.cost(id: string, level: number): number?
	local u = Upgrades.List[id]
	if not u or level >= u.maxLevel then
		return nil
	end
	return math.floor(u.base * u.growth ^ level)
end

return Upgrades

A growth of 1.15 gives small, frequent upgrades; values near 1.6 suit big tiered purchases. New zones usually cost about ten times the previous one and pay five to ten times more per action, which is what makes the second cave feel like progress rather than a reskin.

Step 5: make the server the boss

This is the step AI-built games most often get wrong, and the one that matters most once real players arrive. Anyone can fire any RemoteEvent with any arguments, so the client may only ask. The server checks the request and decides. Send this after the loop works:

Review every RemoteEvent and RemoteFunction. The server must decide all
rewards, prices, purchases and stat changes. Validate argument types,
whitelist item ids against the config, check distance for anything the
player touches, and rate-limit each remote per player. Never accept a
price, amount or player id from the client. List what you changed.

The details, with complete handler code, are in RemoteEvent security with AI.

Step 6: save progress

A game that forgets your coins loses every player on the second visit. Ask for DataStore saving with session locking (so two servers cannot overwrite each other), an autosave, and a save when the player leaves and when the server shuts down. Then prove it: earn something, stop the playtest, start again, and check it is still there. The DataStore guide explains why session locking is the part people skip and regret.

Step 7: playtest after every message

The habit that separates a working AI-built game from a pile of scripts is evidence. Ask the agent, every time, to start a playtest, do the thing, read the output console and take a screenshot before it says the step is done. In Forge the build playbooks require exactly that: each area the message touched is scored from screenshots and the console, never from what the agent meant to build, and anything under 8.5 out of 10 gets one targeted fix and a fresh check. You can hold any agent to the same rule by writing it into your prompts.

When something breaks, paste the exact console error and say what you did just before it. "It doesn't work" costs a round of guessing; "Coins:FindFirstChild error after buying Backpack" usually costs one fix. Fixing scripts with AI has more on this.

Step 8: UI, the phone check, then money

Only now build the HUD and shop. Ask for scale-based layouts that stay inside the safe area, and have the agent check them in Studio's device emulator on a phone preset, because a HUD that looks fine on a monitor can hide behind the top bar on a phone. The UI guide has the prompts.

Add game passes or developer products after the game is fun, not before. Purchases must be granted on the server, and only one script in the game may handle developer product receipts. You create the pass or product on the Roblox website yourself and paste its id; no agent can do that part. See game pass and developer product scripts.

Step 9: publish

  1. Playtest with two clients at once and confirm each player's progress is their own.
  2. Publish privately first and play it on a phone.
  3. Write a description whose first sentence says the genre and the theme, and make an icon that still reads when it is small.
  4. Make it public, then watch your first players: where they stop playing tells you what to fix next.

Publishing itself happens in Roblox Studio and on the Roblox website, under your own account. We could not check Roblox's publishing documentation on November 23, 2026, so follow the current steps in Studio.

Common mistakes and the fix

MistakeWhat happensFix
Asking for "a full game" in one messageForty files, half wired togetherBrief first, then one system per message
UI before rulesShop buttons that grant items on the clientCore loop and server checks before any menu
No saving until the endData layout changes, old saves breakSave as soon as the loop works
Trusting "done"Errors you find a week laterPlaytest, console and screenshot every time
Prices spread across scriptsRebalancing breaks the shopOne config module read by server and UI

What it costs with Forge

On Sonnet 5.5, one build step costs 20 to 150 credits, a whole system 100 to 600, and the seven-message tycoon sequence 2,500 to 6,000. Credit packs start at $10 for 1,000 credits, and every message shows its price before you send it. Trial credits are added the first time you pair the Bridge with Studio, for Roblox accounts older than 30 days, with no card. Current packs and plans are on the pricing page.

Where AI is still weak

Questions

Can AI make a whole Roblox game for me?

An AI agent connected to Roblox Studio can build the parts, scripts, UI and saving for a simple game such as an obby, tycoon or clicker simulator, and test them in a playtest. You still decide what the game is, judge whether it is fun, create game passes on the Roblox website and publish it yourself.

What is the best first game to make with AI?

An obby. The rules are simple, every bug is visible, and one playtest shows whether it works. A tycoon or a clicker simulator is a good second game because it adds an economy and saving.

Do I need to know Luau to make a Roblox game with AI?

Not to start. You do need to read what the agent tells you, run the playtests and check the result. Learning a little Luau helps you spot the agent's mistakes, especially in code that hands out currency or items.

How much does it cost to make a Roblox game with Forge?

On Sonnet 5.5 a single build step costs 20 to 150 credits, a full system 100 to 600 credits, and the seven-message tycoon sequence 2,500 to 6,000 credits. Credit packs start at $10 for 1,000 credits, and the price of each message shows before you send it.

Sources

Related guides

Build your first game in your own Studio. Download the Forge Bridge on your Windows PC, pair it with Studio once, and paste the brief from Step 3. On a phone or a Mac? Open this page on your Windows PC. Download the Forge Bridge →