Build a Roblox Game With Gemini 4 Carbon, Roblox MCP, and Tripo Studio MCP

Build a Roblox Game With Gemini 4 Carbon, Roblox MCP, and Tripo Studio MCP

Build a Roblox game with Roblox MCP, Gemini 4 Carbon, and Tripo. Follow eight steps from game design and 3D assets to a playable, tested prototype.

Mone
AdvancedOthersOriginal source

“AI game development is exploding on Roblox,” a16z wrote on X, pointing to growing Roblox MCP usage and a rising share of top games launched within the previous 90 days. What does that workflow look like when you build a game yourself?

Roblox MCP connects an AI coding client to Roblox Studio, letting it inspect scenes, edit scripts, and run playtests. This tutorial follows Your Turn, a two-player tabletop duel built with Gemini 4 Carbon in Antigravity, Roblox MCP for work inside Studio, and Tripo for 3D props and item icons. Players face off across a lamp-lit table, using limited information and special items to outwit each other.

In about an hour, the build produced 12 scripts, roughly 4,000 lines of Luau, 10 Tripo models, and 11 icons. Follow the eight steps below to connect the tools, build the game rules, import assets, and test the result.

What you will learn

  • Connect an AI coding client to Roblox Studio MCP and verify the correct Studio session.
  • Connect Tripo and generate the models and item icons used in the case.
  • Build game rules with placeholders, then import and align generated models.
  • Check hidden information, gameplay, UI, and persistence before expanding the prototype.

How Gemini, Roblox Studio MCP, and Tripo Work Together

The workflow has three distinct responsibilities. Gemini plans and writes code through an AI client. Roblox Studio MCP exposes tools that act inside the open game project. Tripo generates downloadable assets that are then uploaded and inserted into Roblox.

ComponentResponsibility in this workflow
Gemini 4 Carbon in AntigravityInterpret the design document, plan changes, write Luau, and evaluate tool results.
Roblox Studio MCPInspect the scene, edit scripts, run Luau, control play mode, and capture the viewport.
Tripo Studio MCPGenerate and download 3D assets and create the image assets used for item icons through Tripo Studio MCP in Antigravity.
Roblox Open Cloud importUpload approved local files, wait for asset processing, and insert the resulting Roblox assets.

Roblox MCP is built into Studio, so Gemini can work directly in the open game. Tripo creates the models and icons; Roblox’s import tools bring them into the scene.

This project used Gemini 4 Carbon in Antigravity, where the AI could run tools and work with local files. Use that setup to follow along.

Before You Start

  • Install an up-to-date Roblox Studio and sign in with an account allowed to manage the target experience.
  • Prompt
    text
    Install Tripo Studio MCP for me. Install the Skill from https://github.com/Tripo-Developer/Tripo-Studio-MCP and connect to https://msapi.tripo3d.ai/mcp using OAuth with client ID studio-codex (loopback redirect http://127.0.0.1:<port>/callback). Open the browser for sign-in, then verify the tools are available.
    
  • Create a project folder for the game design document, exported models, icons, and task records.

Step 1: Turn the Idea Into a Small Game Design Document

Start with the game loop, not the tools. For Your Turn, the design established a best-of-three match, lamps as health, a six-chamber prop loaded with two to six rounds, three possible targets, and items that reveal or change information. A written specification gave the agent a stable reference when later requests added art, UI, or progression.

Each reload contains two to six rounds, including at least one red and one white. The three games in a best-of-three match use two, three, and four lamps per player. A red shot extinguishes a lamp; a white round is blank. Shooting the opponent ends the turn; a blank fired at yourself grants another action; shooting the dummy reveals the round and ends the turn. Players have 25 seconds to decide, after which the game fires at the opponent. Each reload grants three items, with a maximum inventory of six.

Suggested prompt

text
I want to make a Roblox game in which two players duel with a revolver. This format suits the way Roblox players interact. Write a detailed design outline covering the game name, a one-sentence pitch, a game description, its elements, the systems built from those elements and how they interact, distinctive features, and a plain-language introduction to the story and play sequence for players (no more than 100 words). Then suggest additional designs and list the external support they would need, such as generating models with Tripo Studio MCP.

The design review in this case established four constraints:

  • Keep hit effects stylized. The project replaced bullets with red and white “charm rounds”; a hit extinguishes a lamp and turns part of the character into paper. No blood or corpses.
  • No stakes: no entry fee, betting, or taking the opponent’s belongings as a prize. To keep gambling out of the design, match results affect only rating and cosmetic rewards.
  • No alcohol, tobacco, pills, or bar setting. Concern about an 18+ rating led to an arcade backroom setting instead.
  • Do not use “roulette” or “gambling” in the title or promotion, and do not place casino props in the scene.

Read the written platform rules and examine existing games appropriate to the intended rating. A rules review involves judgment and does not guarantee moderation approval; complete the content maturity questionnaire accurately before publishing.

The case design map separates match rules, hidden information, items, spectators, and progression.
The case design map separates match rules, hidden information, items, spectators, and progression.

The design document mapped out milestones from M1 (paper testing) to M7 (four-player duel tables). The first build focused on a playable 1v1 table and an AI opponent, leaving four-player matches for later.

Step 2: Connect Your AI Client to Roblox Studio MCP

Enable Studio and connect the client

  • Open a place in Roblox Studio, then open Assistant.
  • Choose the ellipsis menu, then Manage MCP Servers.
  • Turn on Enable Studio as MCP server.
  • Under Quick connect, enable Antigravity or your chosen installed client.
  • Restart the client so it loads the connection. If the client is missing, install it and restart Studio.

Roblox lists Antigravity, Claude Code, Claude Desktop, Cursor, Gemini CLI, Codex CLI, and Visual Studio Code among its Quick connect options. If you are searching for a Roblox MCP plugin or GitHub download, start with this built-in route. The official setup does not require a separate community bridge. See the Roblox Studio MCP documentation for the alternative JSON and command configurations.

The case screenshot shows Studio MCP enabled, connected clients, and the Antigravity Quick connect option.
The case screenshot shows Studio MCP enabled, connected clients, and the Antigravity Quick connect option.

Verify the session before editing

text
Check whether Roblox MCP is connected. Read information only: tell me which place is currently open and what is in it. Do not make any changes.

Look for the green connection indicator, then ask Gemini to describe the open place. If you have several Studio windows open, check that it has selected the right one before making changes.

TaskRelevant Studio MCP tools
Find the correct placelist_roblox_studios
Inspect the scenesearch_game_tree, inspect_instance
Read and change codescript_read, script_grep, multi_edit
Build or simulateexecute_luau
Run a playteststart_stop_play, character_navigation, user_keyboard_input, user_mouse_input
Inspect the resultscreen_capture, get_console_output
Insert an uploaded assetinsert_asset
Save the placesave_place

Authorize the destination and upload folder

  • Open a place belonging to an experience already saved to Roblox. A local-only place cannot use the per-game Open Cloud permissions. Keep the experience private while testing.
  • Open MCP Permissions from Studio’s MCP controls or Assistant settings.
  • Enable the asset:read and asset:write scopes needed for the upload workflow.
  • Approve the project export folder under Open Cloud upload directories.

Choose the project folder shown under Open Cloud upload directories and enable the asset permissions needed for this import. Check the destination owner before uploading; the other permission categories visible in the screenshot are not needed for this step.

Open Cloud upload directories in the case setup. The project path is obscured; only required permissions should be enabled.
Open Cloud upload directories in the case setup. The project path is obscured; only required permissions should be enabled.

Step 3: Build and Test the Graybox Duel

Use basic parts for the room, seats, lamps, dummy, and revolver placeholder. The point of this pass is to prove the rules before spending time on assets. Name the attachment points for the prop, muzzle, camera, and item positions so the final models can replace placeholders without rewriting the match logic.

text
Read Game Design Document.md in the project folder and build the game in the currently open Roblox Studio place. Scope: a playable 1v1 duel table and an AI dealer for solo play; leave ranks and the shop for later. First build a graybox with basic parts: a backroom lobby, four tables, two seats per table, lamps for each player, a placeholder revolver, and a dummy. Keep all rules on the server and never send the round order in the cylinder to clients. Use English for in-game text. After running it, play a match against the dealer yourself in Play mode and show screenshots.
Case footage of the AI-assisted build stage in Roblox Studio.

The case separated the match state, chamber sequence, AI decisions, shared visuals, and client interface. The chamber sequence stayed on the server. A client received the public counts, resolved shot results, and private information only when a game action entitled that player to see it.

Script or moduleResponsibility in the case
MainSeating, AI seats, remote events, input validation, and chat isolation.
MatchTurns, timers, lamps, and the best-of-three result for one table.
ChamberThe hidden round sequence, held only on the server.
DealerAI and TableVisualsOpponent decisions and the shared visual state.
ItemDefs and RemotesShared item text and the Action, State, Private, and Fx events.
YourTurnClientThe HUD, seated camera, and prop and charm effects.

Gemini first ran 400 complete server-only simulated matches without errors. It then entered Play mode, sat at a table, and played against the dealer, checking wins, losses, and surrender through screenshots and console output. Multiplayer and device testing come after this first pass.

Step 4: Add Items, the AI Dealer, and Bluffing

Your Turn’s strategy comes from the gap between public counts and private knowledge. The 11 items manipulate that gap, health, or turn order. Their behavior should be explicit enough to test independently.

ItemCase behavior
PeepholePrivately reveal the current round.
RatchetMove the current round to the end without revealing it; continue the turn.
Odd PotionA 50/50 chance to regain two lamps or lose one.
Heavy CharmMake the next red shot extinguish two lamps.
Hand PressSkip the opponent’s next turn; prevent consecutive use.
Hot TeaRestore one lamp.
SwitchSwap the current round between red and white.
WhisperPrivately reveal the color of a later round.
SleightTake and immediately use one of the opponent’s items.
ScrambleShuffle the remaining rounds and invalidate earlier peeks.
ReverseReverse the order of the remaining rounds.
text
Add the 11 items from the design document. Peephole and Whisper results are private information and must be sent only to the player using the item. Add an AI dealer that takes the empty seat when a player requests a solo match. The dealer must play fairly: it may use only the public red and white round counts and information obtained through its own items, never the hidden sequence. Add table-side actions (smirk, sweat, shrug, tap the table, stare, yawn, laugh, and point). They do not affect the rules and are only for bluffing. Hide spectator chat from seated players.

The eight actions are smirk, sweat, shrug, tap, stare, yawn, laugh, and point. They do not change the rules. After using a private-information item, a player can react honestly or bluff. The case gives the dealer its own record of legitimately acquired information and clears obsolete knowledge when the remaining rounds are shuffled. Seated players do not see spectator chat.

Step 5: Generate Three Core Props With Tripo

Start with the objects players see up close: the brass revolver, the faceless dealer puppet, and a table lamp. A small batch lets you inspect style, geometry, and the import path before creating the rest of the room.

text
In Antigravity, use Tripo Studio MCP to generate three models: a brass revolver, a faceless dealer puppet, and a table lamp. Tell me the credit cost first. Use the same style description for all three and control their polygon counts so they can be imported into Roblox without extra cleanup. Save the files to the project folder and show previews.

Suggested prompts for the three core assets:

text
An antique brass six-shot revolver, long barrel, paper-charm patterns engraved on the cylinder, dark walnut grip, ornate fantasy game prop, stylized hand-painted appearance, single object, side view.
text
A faceless wooden marionette dealer, smooth blank oval head with no facial features, wearing a dark red waistcoat, bow tie, and white gloves, waist-up bust, arms bent forward, hands resting flat in front, a fortune-telling automaton in an old arcade, stylized hand-painted game character, single object.
text
A small antique brass oil table lamp, transparent glass chimney, round base, ornate fantasy game prop, stylized hand-painted appearance, single object.

The first three props used P2.0 text-to-3D with textures enabled and PBR disabled, costing 110 credits each in this build. Check the cost for your chosen settings before starting another batch.

A shared style phrase gives separate generations a common direction, but you still need to compare them visually. Describe the pose the game actually uses: the dealer is a seated bust because it never needs to stand or walk.

The revolver arrived as a single mesh. The prototype animated the whole object for raising, aiming, and recoil. An opening cylinder or independently moving hammer would require separate parts and another preparation pass.

Import the Core Props Into Roblox Studio

After the upload authorization in Step 2, Gemini uploaded each GLB through Open Cloud, waited for the asset to be ready, inserted it into the scene, and compared it with the Tripo preview.

Check the imported result, not only the upload status

Case observationAdjustment used in the prototype
Props appeared too smallScale the placed copies: revolver ×3, lamp ×1.5, dealer ×3.6. These are case-specific values.
Initial props faced the wrong directionNormalize orientation and record the expected forward axis.
Props were not anchoredAnchor static objects so they remain in place during play.
Textures arrived through mesh texture IDsInspect the actual in-game appearance before changing materials.

The revolver used a consistent orientation: the barrel pointed along −Z and the top along +Y, with a Muzzle attachment on its Root part. Later skins could follow the same layout without changes to the game code.

With generation face limits set between 6,000 and 14,000, these models went into Studio without an extra Blender reduction pass. Check the exported meshes before importing your own assets.

Step 6: Furnish the Room and Create Item Icons

After the initial import worked, the case expanded to seven more props: a training dummy, round table, chair, arcade cabinet, locker, pinball machine, and a stack of CRT televisions. Reuse the accepted style language, then describe each object’s functional details.

Suggested prompt

text
In Antigravity, use Tripo Studio MCP to generate the remaining assets, all in the same style as the first three models: a training dummy, a round game table, a chair, an arcade cabinet, a locker, a pinball machine, and a stack of vintage CRT televisions. Then make a pixel-art icon for each of the 11 items. Upload and place all the assets: replace the tables, chairs, and dummies, and place the other props along the lobby walls.

The table, dummy, pinball machine, and CRT stack used face limits of 8,000; the arcade cabinet used 7,000; and the chair and locker used 6,000.

Each prop prompt starts with the object and ends with the same style description:

text
…stylized hand-painted game prop, slightly grimy and worn, old arcade backroom, single object.

Two examples from the seven room props:

text
A round game table with a completely flat dark-green felt top, a thick carved dark-walnut rim inlaid with brass, a stout turned wooden central pedestal, and a wide round foot, stylized hand-painted game prop, slightly grimy and worn, old arcade backroom, single object.
text
A shooting training dummy: a coarse burlap sack torso stuffed with straw, a round burlap head with no facial features, mounted on a wooden post with a round wooden base, a wooden crossbar for arms, a red-and-white target painted on the chest, visible stitching, stylized hand-painted game prop, slightly grimy and worn, old arcade backroom, single object.

Small wording choices helped: “completely flat” described the tabletop needed for play, while “no text” and “blank marquee” kept unwanted lettering out of the arcade and pinball props. Inspect those details in the generated previews.

The 11 item icons used a shared text-to-image template. Only the subject changed:

text
Pixel-art game item icon: a steaming ceramic green-tea cup on a small saucer, chunky 32×32 retro style, hard pixel edges, thick dark outlines, limited to bone white, amber brass, rust red, and coal black, one centered object, solid flat background, no text, no border.

Each icon cost 10 credits in this build. The prompt’s “32×32” refers to the retro look; check the output dimensions when preparing the images for the HUD.

The 11 case item icons share a palette and pixel-art treatment; the subject changes with each item.
The 11 case item icons share a palette and pixel-art treatment; the subject changes with each item.

With the props and item icons ready, the next pass focused on lighting and the surrounding HUD.

Step 7: Adjust the Lighting and Build a Retro HUD

Lighting

The visual direction was dark horror: PS1-era low-poly styling, industrial wear and decay, and a touch of fairy-tale Gothic.

text
The scene looks too flat. Give it a dark horror style like Buckshot Roulette: make the room almost completely black, put a hard spotlight above each table, make the felt tabletop the brightest part of the image, and add a little fog and low-saturation color grading. Show in-game screenshots from the seated player’s perspective, not editor screenshots.

This pass reduced ambient light to almost black, suspended a shadow-casting spotlight above each table, and added two stage lights to the room. Fog and low-saturation grading reinforced the mood. An illuminated felt pad with a chalk circle beneath each revolver drew attention to the center of the table.

The room props totaled about 500,000 triangles and used many shadow-casting lights, making the scene relatively heavy. The lamps were set to Performance render fidelity.

Retro HUD

text
Here are three reference images. Rebuild the retro HUD to match their feel: torn-edge parchment panels on dark backplates, pixel buttons with bevels, outlines, and hard drop shadows, a small fixed palette, and the same pixel font throughout. Keep the center of the screen clear so I can see the table.
Your Turn’s lobby and retro HUD in Studio preview. The on-screen notice states that progress lasts for the current test session only.
Your Turn’s lobby and retro HUD in Studio preview. The on-screen notice states that progress lasts for the current test session only.

Feedback on the screenshots produced five rules for the HUD:

  • Use one font throughout. Press Start 2P appears on the table signs, all interface elements, and even the lobby wall noticeboard.
  • Give buttons texture. Flat-color buttons felt insufficiently retro, so buttons, item slots, and table signs used small pixel images with pre-painted bevels and shadows.
  • Keep text readable. Use a 1280×720 reference layout, 20–25-pixel text, and scaling with the screen. Shorten labels to fit the wide font.
  • Keep the center clear. Stack items along the right edge, place the dealer’s dialogue in the bottom console, and keep item cards low.
  • Anchor side panels from the top. A version anchored to the center extended beyond the top of the screen at some window sizes.

HUD textures—the nine-slice parchment panels, buttons, item slots, and signs—were drawn with Python scripts and uploaded as images.

Step 8: Test, Add Progression, and Save

The final pass added ways to find an opponent, follow a match, and work toward rewards: same-server matchmaking, spectator views, XP, quests, cosmetic skins, and lobby navigation.

  • Matchmaking: a same-server queue and seat reservations, with actions accepted only from the seated players, rate limits, and cleanup on disconnect or character reset.
  • Spectating: public match state without private item information; spectator chat hidden from seated players.
  • Progression: XP and three quests—finish five duels, defeat the dealer, and win with one lamp remaining.
  • Cosmetics: four XP-unlocked revolver finishes—Old Brass, Verdigris, Paper Ivory, and Midnight Iron.
  • Rating: a starting PvP rating of 1,000 and five rank names from Newcomer to Legend.
  • Lobby: Find Opponent, Wardrobe, Progress, Watch Table, How to Play, and Settings / Friends pages.

The HUD was adapted for landscape phones by moving status information into the corners, using compact edge panels, and hiding empty item slots. The Studio preview kept progress for the current test session only; persistent saves and performance on a phone still needed checking.

text
Prepare for private testing. Add same-server matchmaking, spectating that never displays private information, XP, a few quests, revolver cosmetics, and a PvP rating. Add lobby pages for these features, plus rules and settings. Write a repeatable test suite for match rules, items, and privacy rules. Adapt the HUD for landscape phones. Then save the place, keep it private, and record what was verified and what could not yet be verified.

Gameplay footage from the case: the lobby, a duel against the AI dealer, item use, and the game interface.

From a Design Document to a Playable Roblox Game

An hour of conversation produced a design document, a connected toolchain, a duel with complete rules and an AI opponent, a furnished and lit room, a HUD in the chosen style, and a playable Roblox game. The creator’s time went mainly into decisions: choosing the visual direction, shaping the gameplay, and rejecting unsuitable ideas.

Roblox’s built-in MCP server let Gemini 4 Carbon build, playtest, and capture screenshots, checking changes inside the running game. Tripo supplied ten props and eleven icons through the connected asset workflow, with polygon limits and shared style descriptions, without manual modeling.

Tripo Studio

Put This Tutorial Into Practice

Open Tripo Studio and try the workflow you’re learning here.

Was this tutorial helpful?

Help us improve this content.