In short
Click Assistant on the right side of the bar along the top of Roblox Studio. It is built in, needs no setup, and can write scripts and change objects in the place you have open. For more control, connect an agent such as Claude Code, Cursor or Codex through Studio's built-in MCP server, use a third-party plugin agent such as RoCode, or ask a chatbot in a browser tab and paste the code in yourself.
- Only Assistant, MCP clients and plugin agents can edit your open place. A browser chatbot sees only what you paste.
- Free routes: Assistant comes with Studio and its docs list no price (their one stated cap is 50 procedural models per rolling 24 hours). The MCP server is part of Studio, but your AI client may cost money. RoCode's free Starter plan includes 250,000 tokens a day.
- Whichever you pick: save a version first, ask for one feature at a time, read every change, and play-test it yourself.
On this page
The four ways to use AI in Roblox Studio
Most AI tools for Roblox fall into one of four shapes. The shape decides whether the AI can see your Explorer, whether it can make changes without copy and paste, and whether it can play the game to check its own work.
| Option | Works in your open place | Setup | Cost, as published | Watch out for |
|---|---|---|---|---|
| Assistant, built in | Yes: scripts, objects and Creator Store assets. It can playtest. | None. | Comes with Studio; no price in the docs. 50 procedural models per rolling 24 hours. | Results vary between tries. |
| Studio MCP server + your AI client | Yes: scripts, running Luau, playtests, input and screenshots. | Turn the server on, then connect Claude Code, Cursor, Codex or another client. | The server is part of Studio; the client has its own price. | The client can run code in your session. |
| Plugin agent, such as RoCode | Yes. RoCode: scripts and instances, with a compile check in Studio. | RoCode: free account, Creator Store plugin, 8-character pairing code. | Varies. RoCode: 250,000 tokens a day free; paid from $9.99 a month before tax. | RoCode does not playtest or generate meshes. |
| Chatbot in a browser tab | No. It sees only what you paste. | None. | The app's free tier or subscription. | It guesses your names; you paste every script. |
1. Roblox Assistant, built into Studio
Assistant is Roblox's own AI helper. It answers questions, creates and modifies objects and scripts, inserts Creator Store assets, explains code, and generates materials, 3D meshes and procedural models. Roblox's AI overview also lists running code, simulating input and playtesting among its abilities.
How to use Assistant in Roblox Studio
- Update Roblox Studio to the latest version.
- Click Assistant on the right side of the mezzanine bar, the strip along the top of the Studio window.
- Select the object you mean first. A new script goes into the selected object; with nothing selected, Assistant decides where it goes.
- Type a request. For a bigger job, switch the dropdown in the input panel from Agent to Plan, or type
/plan. - Read what it changed, then press Play and test it yourself.
That dropdown is the "Agent vs Plan" choice. Agent, the default, works on your place as it goes. Plan first writes a step-by-step plan as a Markdown document you can edit, and builds nothing until you click Build. Slash commands such as /generate_mesh, /generate_procedural_model and /generate_material make content, and Skills (under …, Assistant Settings) teach it your conventions. To use your own model, open …, Manage API Keys and add a key from Anthropic, OpenAI or Google Gemini; usage then runs on your key, at that provider's prices.
Limits Roblox documents
- Up to 50 procedural models in a rolling 24-hour window. It never resets at a fixed time; it counts your requests from the past 24 hours.
- A generated script might not work flawlessly, and results vary each time you ask.
- It leans towards changing things at edit time. If something should happen while the game runs, ask for "a script that sets the time to 8:00 AM", not "set the time to 8:00 AM".
- Long builds can stop at the maximum response length. Click Continue to resume.
The Assistant docs publish no price and no message limit, and describe no way to raise a limit you hit. Assistant comes with Roblox Studio, which Roblox describes as a free application.
Is the Roblox Studio Assistant good?
For something built in with no setup, it covers a lot: it edits your real place, can plan before it builds, and generates meshes, materials and procedural models. It is the sensible first thing to try. Its weak spots are the ones Roblox names: results vary, scripts need checking, and it can confuse edit time with run time. Treat what it makes as a fast first draft.
2. The Studio MCP server with Claude, Cursor or Codex
MCP (Model Context Protocol) is an open standard that lets an AI client use tools in another app, and Roblox Studio has an MCP server built in. Turn it on, and an AI client you already use can work on your open session: explore the Explorer tree, read and edit scripts, run Luau, start and stop playtests, read the Output, capture the viewport and send keyboard or mouse input.
Roblox lists quick connect for Antigravity, Codex CLI, Claude Code, Claude Desktop, Cursor, Gemini CLI and Visual Studio Code. Other clients that support MCP over standard input and output connect with a JSON configuration or a command.
- Install the latest Roblox Studio and your MCP client.
- In Studio, open Assistant, click …, then Manage MCP Servers, and turn on Enable Studio as MCP server.
- Under Quick connect, turn on your client. If it is not listed, install it and restart Studio, or add Roblox's JSON configuration to the client.
- Restart the client. A green indicator in the same panel shows how many clients are connected.
- Start with something harmless, such as asking the client to list what is in Workspace.
Cost. The server is part of Studio. The AI is not: the client and its model come on their own terms, whether that is a free tier, a subscription or pay-as-you-go API use.
Strengths. You keep the agent and editor you already know, and because the server exposes playtesting, input and screenshots, a capable agent can test its own changes. Roblox's coding harness guide pairs it with Script Sync, a Studio beta (File, Beta Features) that links services such as ServerScriptService to folders on disk, so your scripts become files you can track with Git.
Limits. It is the most setup of the four: a separate app, sometimes a config file, and a restart or two. How well it works depends on the client and model you connect. Per-client setup is in the Studio MCP guide.
3. Plugin agents such as RoCode
A plugin agent is a third-party AI agent that works in Studio through a plugin. Like Assistant it edits your real place, but the chat, the models and the pricing come from another company.
RoCode, made by the RoCode team, is one of these. You describe a change in a web chat at rocode.app, and a free plugin from the Roblox Creator Store carries out the agent's steps in your open place: it reads the objects and scripts a step needs, writes the Luau, creates or edits scripts and other instances, and compile-checks its scripts inside Studio before it finishes. Requests go through RoCode's server and OpenRouter to third-party models; RoCode has no models of its own. It is an independent product, not affiliated with, endorsed by or sponsored by Roblox Corporation.
- Setup: a free account, the plugin with the HTTP and Script Injection permissions it asks for, and the 8-character code from the plugin panel typed into the chat. No MCP server, config file or command line. The chat needs a desktop browser; in Brave, turn Shields off for rocode.app.
- Cost: Starter is free with 250,000 tokens a day. Paid plans start at $9.99 a month in US dollars, before tax.
- Strengths: a step-by-step log in the chat, a compile check inside Studio, and each batch of changes marked as one undo point in Studio's own undo history.
- Limits: edit mode only. It does not start playtests, move a character, take screenshots, generate meshes or animations, sculpt terrain, insert Toolbox models or change Game Settings.
Other third-party agents exist with their own pricing. By their own sites when we checked on 27 September 2026, Ropilot is a desktop app that installs its own Studio plugin, and Forge is a Windows app that connects through Studio's MCP server; both can run playtests, which RoCode cannot. See RoCode vs Ropilot, RoCode vs Forge and the Roblox AI tools comparison.
A plugin runs inside Studio with the permissions you grant it, and one allowed to inject scripts can change any script in the place, so install plugins only from creators you trust, and disable the ones you are not using.
4. A chatbot in a browser tab
The simplest option is a general chat app such as ChatGPT, Claude or Gemini. There is nothing to install, and it is good at explaining a concept, walking through an error message, reviewing a script you paste in, or planning how systems should fit together before you build.
Its limit is that it cannot see your place. It does not know your door sits in a folder called Doors, or that you already have a leaderstats script, so it guesses paths and may write a second copy of a system you already have. You then create the right kind of script in the right place and paste the code in yourself.
To get more out of it, paste the full Explorer path of every object involved, the scripts it has to work with, and whether the code runs on the server or the client. If you are unsure which side code belongs on, read Script vs LocalScript vs ModuleScript first.
What AI is good and bad at in Roblox work
The tools differ in reach, but the models behind them share the same habits.
Usually good at
- Standard systems with a well-known shape: leaderstats, checkpoints, doors, tweens, a RemoteEvent round trip, a basic shop screen.
- Explaining an error message or a script line by line.
- Repetitive edits across many objects: renaming, setting a property on every lamp in a folder, adding the same behaviour to twenty parts.
- First drafts of UI layouts and greybox builds that you then adjust by hand.
Often bad at, so check these
- Trusting the client. A LocalScript that changes coins, or a RemoteEvent that takes the price from the player, looks fine and is easy to exploit. The server should decide anything that matters and check every RemoteEvent argument, as the RemoteEvents guide shows.
- Data that must not be lost. Saving code that skips
pcall, saves over a failed load, or ignores request limits can wipe progress. Compare it against the DataStore tutorial. - Your conventions. Unless the tool reads your place or you describe it, it invents names and duplicates systems you already have.
- Current APIs.
wait(),spawn()anddelay()are deprecated in favour oftask.wait,task.spawnandtask.delay, but models can still write them. Roblox's Code Assist docs warn of the same thing: suggestions may use older APIs. - Big jobs in one prompt. Long outputs get cut off, and later steps drift from earlier ones.
- Knowing whether the game is fun. Code that compiles can still be wrong, and even an agent that playtests cannot tell you whether a jump feels fair.
A safe workflow for letting AI edit your place
Any tool that can change your place can also break it. This routine works the same with Assistant, an MCP client or a plugin agent.
- Save a checkpoint. Use File, Save to Roblox with Notes (Ctrl+Alt+S, or Cmd+Option+S on Mac) and note what you are about to try. If your scripts live in files through Script Sync or Rojo, commit to Git too.
- One feature per prompt. "Add a sprint key" is reviewable; "make my game better" is not. For anything bigger, ask for a plan first and trim it.
- Read every change. Check each script is the right type in the right place, that the server decides anything involving currency, damage or saving, and that nothing you did not ask for was deleted or renamed.
- Play-test it yourself. Press Play, try the awkward cases a player would, and keep the Output window open (from the Window menu). Paste any error line back with its script path and line number.
- Know your way back. Undo (Ctrl+Z, or Cmd+Z) takes back recent changes, including a plugin's when it records undo points. For a run that went badly wrong, open Window, Version History, click ⋮ next to your saved version, then Open Local Copy, and in that copy save over the place with File, Save to Roblox As.
- Keep secrets out. Never paste API keys, webhook URLs, cookies or passwords into a prompt, or let an AI hard-code them. Store them in the game's secrets store (Creator Dashboard, your game, Secrets) and read them on the server with
HttpService:GetSecret. Studio playtests cannot read that store: add test values under File, Experience Settings, Security, Local Secrets. - Test saving code on a copy. With Enable Studio Access to API Services on (File, Experience Settings, Security), Studio uses the live game's data stores, so Roblox advises doing it only in a separate test version.
How to prompt AI well for Luau
Most bad output comes from a prompt that left the model guessing. Roblox's own prompt guide opens with the same advice: be specific, and use instance names exactly as they are spelled.
- Name objects and where they live, as the Explorer shows them:
Workspace.Lobby.StartButton, not "the button". - Say what kind of script, where it goes, and which side decides: "a Script in ServerScriptService gives the coins; the LocalScript only asks".
- Point at what exists: "use the Coins value in the existing leaderstats, do not create a new folder".
- Ask for current Luau:
task.waitrather thanwait, and server-side checks on every RemoteEvent argument. - When fixing, paste the exact Output line, with the script path and line number, and say what you did just before it appeared.
- Ask how to test it. A good answer ends with the steps that prove it works.
| Vague | Specific |
|---|---|
| Make a shop. | Add a shop ScreenGui in StarterGui selling a Speed Coil for 100 Coins. A LocalScript fires a RemoteEvent named BuyItem in ReplicatedStorage with only the item name; a Script in ServerScriptService checks leaderstats.Coins, takes the coins and gives the tool. |
| Fix my script. | ServerScriptService.RoundManager errors on line 42 with "attempt to index nil with 'Humanoid'" when a player resets mid-round. Fix that case without changing how rounds start. |
| Make it night. | Add a Script in ServerScriptService that sets Lighting.ClockTime to 0 when the server starts. |
A prompt and its result
A good result is short and does exactly that. This one is written by us to show the pattern; any tool's wording will differ.
local Players = game:GetService("Players")
local lava = script.Parent :: BasePart
lava.Touched:Connect(function(hit: BasePart)
-- Only react to parts of a player's character, not NPCs or loose parts
local character = hit:FindFirstAncestorOfClass("Model")
if not character or not Players:GetPlayerFromCharacter(character) then
return
end
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid and humanoid.Health > 0 then
humanoid.Health = 0
end
end)
What to check before you trust it: it is a server Script, so the result is the same for every player; FindFirstAncestorOfClass("Model") finds the character even when the touching part is inside an accessory; and GetPlayerFromCharacter returns nil for NPCs, so they are ignored as asked. Then play-test: walk onto the lava, and drop an unanchored part on it to confirm nothing errors in Output.
Can AI make a whole Roblox game?
It can make a playable prototype of a simple game. It cannot, on its own, make a game people keep coming back to.
Roblox's own "Build your first game with Assistant" guide shows the realistic version: plan an obby with Assistant, let it build a greybox prototype, then play-test, report what is broken, and repeat until you can play from start to finish. It ends by encouraging you to treat Assistant as a collaborative partner rather than relying on it to build everything. Roblox also has Build, a separate mobile-first tool in the Roblox app that turns a description into a publishable game; its docs say it focuses on simpler 2D and 2.5D games for now and is rolling out gradually by region.
What AI does not do for you is the part that makes a game work: deciding what is fun, tuning difficulty and rewards, keeping the economy fair, running well on a cheap phone, and keeping player data safe. It gets you from an idea to something playable much faster, and writes a lot of the Luau on the way. You still decide what the game is, and you still test it.
Common problems and fixes
Most AI trouble in Studio is a setup issue or a script in the wrong place. Keep the Output window open while you test: the error line names the script and the line.
My MCP client does not see Roblox Studio
Restart both Studio and the client. For quick connect, install the client first, then restart Studio. If you configured it by hand, check the command path exists and the JSON is valid: one missing comma stops the file loading. The green indicator under Manage MCP Servers confirms a connection.
The AI says it added a script, but nothing happens in the game
Check the script's type and location. A LocalScript runs from places such as StarterPlayerScripts, StarterGui or the character, not from ServerScriptService. Also check whether the AI changed the place once in edit mode instead of writing a script that runs during play.
It works for me, but other players do not see it
A LocalScript made the change, so only your client sees it. Move it into a server Script, and if a button or key press triggers it, send a RemoteEvent and let the server decide.
The AI changed or deleted things I did not ask for
Undo the last changes, or restore the version you saved before you started. Next time, ask for one feature at a time and name what it must not touch, for example "do not change the RoundManager script".
Example: the play-test loop with RoCode
If you take the plugin-agent route, this is how the workflow above looks with RoCode: you press Play, and RoCode picks up from what you found. Say the first version of the lava script had a bug, so touching it did nothing and the Output showed an error.
I play-tested and touching LavaFloor does nothing. Check the Output and fix the lava script.
- Reads Studio's Output with Check Output, including the Server and Client lines from your last playtest, even after you press Stop
- Reads the lava script around the failing line with Read Script, then edits it with Edit Script
- Compile-checks the edited script with Check Script inside Studio. It does not type-check, lint or run your code
- Sends the change as a batch that is one undo point in Studio's history
Then you press Play again to confirm the fix: RoCode does not start playtests, move a character or take screenshots. The prompt is an example written by us; the steps use the real tool names. How RoCode connects to Studio.
Questions
How do I get AI in Roblox Studio?
It is already there: update Studio and click Assistant on the right side of the mezzanine bar. For a different AI, connect an MCP client such as Claude Code or Cursor, or install a plugin agent from the Creator Store.
How can I use AI in Roblox Studio for free?
Assistant comes with Studio and its docs list no price; their one stated cap is 50 procedural models per rolling 24 hours. Code Assist is built in with a daily cap. The MCP server is part of Studio, though your client may charge. RoCode's Starter plan is free with 250,000 tokens a day, and many chat apps have a free tier.
Is there an AI plugin for Roblox Studio?
Assistant is part of Studio rather than a plugin. Third-party agents exist too: RoCode works through a Studio plugin, and Ropilot and Forge connect through their own desktop apps. See the Roblox AI tools comparison.
Can I use Claude or ChatGPT inside Roblox Studio?
Yes, in two ways Roblox documents: connect Claude Code, Claude Desktop, Codex CLI or another MCP client to Studio's MCP server, or add your own Anthropic, OpenAI or Google API key to Assistant under Manage API Keys. Either way, that company's plans and prices apply, not Roblox's.
Do I still need to learn Luau if I use AI?
Enough to read what it writes: to spot a script in the wrong place, a missing server check, or a save that can lose data. The client and server guide and the script errors guide cover what matters most.
Sources and further reading
- Roblox Creator Docs: Assistant for Studio. abilities, Planning Mode, slash commands, the procedural model limit
- Roblox Creator Docs: Assistant prompt guide and examples. being specific, edit time versus run time
- Roblox Creator Docs: Assistant MCP servers. using your own API key
- Roblox Creator Docs: Assistant skills
- Roblox Creator Docs: Connect to the Roblox Studio MCP server. setup, quick connect clients, tools, troubleshooting
- Roblox Creator Docs: Build with a coding harness. Script Sync, MCP and Git
- Roblox Creator Docs: AI on Roblox
- Roblox Creator Docs: Build your first game with Assistant
- Roblox Creator Docs: Create games with Build
- Roblox Creator Docs: Script Editor, Code Assist
- Roblox Creator Docs: Version History
- Roblox Creator Docs: Secrets stores
- Roblox Creator Docs: Data stores. Studio access to API services
- Roblox Engine API: Roblox globals. wait, spawn and delay deprecated
How the code was checked: every script on this page passes Luau's strict type checker against Roblox's API definitions (luau-lsp, 30 September 2026). A type check catches misspelt APIs and wrong types, not game logic, so play-test in Studio before you publish.