Claude Game Studio

How to make a Roblox game with AI

Make a Roblox game by connecting Claude Code to Studio MCP, adding Luau scripts and playtesting in Studio.

Build a six-pad obstacle course: jump across the gold platforms, finish on green and race your time.

Course plan: blue spawn, six gold pads spaced ten studs apart, green finish at 70 studs, and lava below
The course built by the server script below. Diagram of the layout; each gold pad must be touched in order.

1. Connect Roblox Studio MCP

Install Roblox Studio on Windows or macOS and open a fresh Baseplate place. Roblox's Studio MCP instructions, read 30 November 2026, put the server inside Studio. Open Assistant → … → Manage MCP Servers, enable Studio as MCP server, then select Claude Code under Quick connect.

Restart the client if needed and open /mcp. Ask for list_roblox_studios and choose your new place by name and ID. Current tools take a studio_id, so carry the chosen ID into subsequent calls. A connected client indicator is useful, but a response naming your actual place confirms the target.

For a manual macOS connection, Roblox documents the bundled executable at this path. Register it with Claude Code, then verify the Studio instance:

claude mcp add --transport stdio roblox -- /Applications/RobloxStudio.app/Contents/MacOS/StudioMCP

On Windows, use Quick connect or the vendor's configuration for %LOCALAPPDATA%\Roblox\mcp.bat. Copy the command for your installed Studio version. The archived standalone Rust server is an older implementation; you do not need to install it for Studio's bundled route.

2. Give Claude a small game

An obby is an obstacle course. Keep the first one to six jumps and a finish; add decoration after the round works. The scripts below create every course part, track each player separately and show a timer. Give Claude both source files and this request:

Use Roblox Studio MCP. List the Studio instances, select my new Baseplate place and inspect its tree. Ask before changing any existing project. In this fresh place, remove only the template Baseplate and SpawnLocation. Create ServerScriptService.Obby as a Script and StarterPlayer.StarterPlayerScripts.Timer as a LocalScript using the two supplied sources. Start Play, inspect output and test each pad in order. Verify early finish is rejected, a fall clears the attempt, and resetting the character allows another race. Stop Play and report the changed scripts. Do not publish.

Use a new place so removing the template floor cannot erase an existing level. The Baseplate template's original floor and spawn must be removed before running this example; otherwise the large floor catches falls and its spawn can compete with the course spawn. The new server Script creates a blue spawn, six gold pads, a green finish and a red lava floor.

Studio's tools include search_game_tree, inspect_instance, multi_edit, execute_luau, start_stop_play and get_console_output. Those names come from Roblox's current documentation. Ask Claude to inspect returned tool schemas rather than assuming a community plugin accepts the same arguments.

  1. 1. Create the course

    One server Script creates the spawn, six pads, finish and lava.

  2. 2. Start on pad 1

    Server records the start time and accepts pads in order.

  3. 3. Finish on green

    After pad 6, the server freezes the elapsed time.

  4. 4. Reset and retry

    Death or character reset clears the attempt for that player.

3. Add both Luau scripts

In Explorer, insert a Script under ServerScriptService, name it Obby and replace its contents with the server code. Insert a LocalScript named Timer under StarterPlayer → StarterPlayerScripts and paste the client code. Do not put either script directly in Workspace.

The server decides pad order and completion. The client only draws the display. Start time uses Workspace:GetServerTimeNow() so both scripts refer to the same clock. A repeated touch does not restart the timer or award another pad.

All pads are seven studs wide, with centres ten studs apart. The finish is at x = 70. Change spacing in the server loop if you want another course, then recheck every jump. The time shown is a simple practice-round measurement; pad order alone is not anti-cheat protection for a competitive leaderboard.

Download the placement instructions with the two scripts. The source is CC0 so you can edit it for your own place. The code creates the course at runtime; stop Play before editing the saved scripts, and run a fresh Play session after each change.

ServerScriptService.Obby

-- Put this Script in ServerScriptService in a fresh Baseplate place. local Players = game:GetService("Players") local Workspace = game:GetService("Workspace") local course = Instance.new("Model") course.Name = "TimedObby" course.Parent = Workspace local function makePart(name, position, size, color, className) local part = Instance.new(className or "Part") part.Name = name part.Anchored = true part.Size = size part.Position = position part.Color = color part.Parent = course return part end local spawn = makePart("Spawn", Vector3.new(0, 3, 0), Vector3.new(12, 1, 12), Color3.fromRGB(90, 180, 255), "SpawnLocation") spawn.Neutral = true spawn.Duration = 0 local function reset(player) player:SetAttribute("ObbyStep", 0) player:SetAttribute("ObbyStartedAt", nil) player:SetAttribute("ObbyFinishedIn", nil) end local function bindPlayer(player) reset(player) player.RespawnLocation = spawn local function onCharacter(character) reset(player) local humanoid = character:WaitForChild("Humanoid") humanoid.Died:Connect(function() reset(player) end) end player.CharacterAdded:Connect(onCharacter) if player.Character then task.spawn(onCharacter, player.Character) end end Players.PlayerAdded:Connect(bindPlayer) for _, player in Players:GetPlayers() do bindPlayer(player) end local function touchingPlayer(hit) local character = hit:FindFirstAncestorOfClass("Model") if not character then return nil end local humanoid = character:FindFirstChildOfClass("Humanoid") if not humanoid or humanoid.Health <= 0 then return nil end return Players:GetPlayerFromCharacter(character) end for index = 1, 6 do local pad = makePart("Pad" .. index, Vector3.new(index * 10, 3, 0), Vector3.new(7, 1, 9), Color3.fromRGB(255, 180, 70)) pad.Touched:Connect(function(hit) local player = touchingPlayer(hit) if not player or player:GetAttribute("ObbyFinishedIn") then return end local step = player:GetAttribute("ObbyStep") or 0 if index ~= step + 1 then return end if index == 1 then player:SetAttribute("ObbyStartedAt", Workspace:GetServerTimeNow()) end player:SetAttribute("ObbyStep", index) end) end local finish = makePart("Finish", Vector3.new(70, 3, 0), Vector3.new(12, 1, 12), Color3.fromRGB(120, 255, 160)) finish.Touched:Connect(function(hit) local player = touchingPlayer(hit) if not player or player:GetAttribute("ObbyStep") ~= 6 then return end if player:GetAttribute("ObbyFinishedIn") then return end local started = player:GetAttribute("ObbyStartedAt") if not started then return end local elapsed = Workspace:GetServerTimeNow() - started player:SetAttribute("ObbyFinishedIn", elapsed) print(string.format("OBBY_FINISH user=%d seconds=%.2f", player.UserId, elapsed)) end) local lava = makePart("Lava", Vector3.new(35, -3, 0), Vector3.new(110, 1, 55), Color3.fromRGB(255, 70, 75)) lava.Touched:Connect(function(hit) local player = touchingPlayer(hit) if player and player.Character then player.Character:FindFirstChildOfClass("Humanoid").Health = 0 end end) print("OBBY_READY pads=6 finish_x=70")

StarterPlayerScripts.Timer

-- Put this LocalScript in StarterPlayer > StarterPlayerScripts. local Players = game:GetService("Players") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local gui = Instance.new("ScreenGui") gui.Name = "ObbyTimer" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local label = Instance.new("TextLabel") label.Size = UDim2.new(1, -32, 0, 84) label.Position = UDim2.new(0, 16, 0, 12) label.BackgroundColor3 = Color3.fromRGB(15, 23, 40) label.BackgroundTransparency = 0.1 label.TextColor3 = Color3.new(1, 1, 1) label.TextSize = 23 label.TextWrapped = true label.Font = Enum.Font.GothamBold label.Parent = gui RunService.RenderStepped:Connect(function() local finished = player:GetAttribute("ObbyFinishedIn") local started = player:GetAttribute("ObbyStartedAt") local step = player:GetAttribute("ObbyStep") or 0 if finished then label.Text = string.format("Finished: %.2f seconds\nReset character to race again", finished) elseif started then label.Text = string.format("%.2f seconds | Pad %d/6\nJump to the green finish", workspace:GetServerTimeNow() - started, step) else label.Text = "Jump onto the first gold pad to start\nTouch all 6 pads in order" end end)

4. Playtest the whole round

  1. Press Play. Output should show OBBY_READY pads=6 finish_x=70; the display asks you to reach the first gold pad.
  2. Jump onto pad 1. The timer starts. Touch all six pads in order, then green. The display should freeze and Output should include OBBY_FINISH.
  3. Try reaching green before touching all pads. It must not finish. Falling onto red lava must end the attempt and respawn you.
  4. Reset your character from the Roblox menu. The timer must clear and another complete race must work.
  5. Use Studio's server/client testing controls with two players. One player's finish or reset must not change the other's progress.

Test movement with the controls your players will use, including a phone emulator if you plan to support touch. For an automated movement check, use Studio's user_keyboard_input to press movement and jump keys; teleporting onto a pad does not test the jump. If a jump is awkward, reduce the distance between pad centres and repeat the round. The default Roblox character controller supplies movement; these scripts do not replace it.

Ask Claude for get_console_output after each failed attempt and use screen_capture to inspect the actual viewport. If the timer never appears, check the LocalScript's Explorer location. If the course never appears, check the server Script and Output before editing the UI.

What we ran on Linux

Roblox community bridge

64tools returned

0 connected Studio instances

Actual MCP responses on Linux, 30 November 2026. No engine editor was connected. Open the tool lists and responses.

On 30 November 2026 we built and started boshyxd's community Studio bridge at the pinned revision below. Its README announces archival; this is a historical protocol probe. MCP initialization succeeded and tools/list returned 64 names. Calling get_connected_instances returned {"instances":[],"count":0}. Its tools include get_project_structure, set_script_source, execute_luau and start_playtest.

Those are community-tool names, not an observed list from Roblox's bundled server. The tool names and responses separate implementations. We also compiled both supplied Luau sources and exercised the server rules with mocked Roblox events; those source checks do not simulate character physics.

Roblox Studio is not installed on this host. We did not run its bundled MCP binary, open the obby, test jumps or multiplayer, record gameplay or publish a place. The desktop setup comes from the linked Roblox documentation, read on the test date. To reproduce the separate community-process check:

git clone https://github.com/boshyxd/robloxstudio-mcp.git git -C robloxstudio-mcp checkout 2e4345d2c1d3f7d80c39d3745997dd3c0a901d47 cd robloxstudio-mcp npm ci npm run build
claude mcp add --transport stdio roblox-community -- node "/absolute/path/to/robloxstudio-mcp/packages/robloxstudio-mcp/dist/index.js"

That archived implementation's desktop setup also requires its matching Studio plugin and Allow HTTP Requests, as described in its pinned README. For the new game above, use Roblox's bundled connection.

5. Save, then choose your audience

Stop Play and save the place. Follow Roblox's current publishing and release instructions, read 30 November 2026, to save it to your account and choose who can join. A first cloud save and opening a game to the public are separate steps. Complete the platform's current audience requirements before inviting players.

For another engine, follow Unity MCP. For a game that opens directly in a browser, the AI game walkthrough shows a recorded build with its prompt and cost. The studio kit supplies those browser templates and game-making guidance; this Roblox course remains editable Luau in your own Studio project.

Questions

How do you make a Roblox game with AI?

Create a place in Roblox Studio, connect Claude Code through Studio's built-in MCP server, and ask it to build and test one small game. This guide supplies two complete Luau scripts for a six-pad obby with a server-owned timer. Place them in the named Explorer locations, then playtest in Studio.

Can Claude Code control Roblox Studio?

Yes. Studio's built-in MCP connection exposes tools to inspect instances, edit scripts, execute Luau and start or stop playtests. Enable it from Assistant's Manage MCP Servers panel and connect Claude Code. Verify the intended Studio instance before changing a place.

Does Roblox Studio run on Linux?

Roblox's supported Studio platforms are Windows and macOS. Our Linux machine ran a community MCP bridge, which advertised 64 tools but reported zero connected Studio instances. That is a protocol test, not a Roblox Studio run or a playable Roblox build.

Where do the obby timer scripts go?

Obby.server.luau goes in a Script named Obby under ServerScriptService. Timer.client.luau goes in a LocalScript named Timer under StarterPlayer > StarterPlayerScripts. The server creates the course, checks pad order and records elapsed time; the client displays that state.

Can I publish the obby immediately?

First playtest the course, early-finish rejection, falling, reset and two-player behavior in Studio. Save or publish the place to your account, then use Roblox's current audience and release instructions when you want other people to play. This guide does not publish on your behalf.