Guide · AI in Roblox Studio

Roblox Code Assist: AI code completion in the Studio Script Editor

Code Assist is the AI code completion built into Roblox Studio's Script Editor. It suggests the next lines or a whole function in grey text as you type, and you press Tab to keep a suggestion. This guide covers what Roblox documents about it: how it is triggered, where the switch to turn it off is, how to get better suggestions, its limits, and what Roblox says about your code. Roblox facts are from Roblox's own documentation, checked on 13 November 2026.

Updated 13 November 202613 min readBeginnerWindows and macOSWritten by

In short

Code Assist suggests lines or functions of code in the Script Editor, based on your code and comments. It appears by itself when you pause on a line for a few seconds, or when you press Alt and Backslash on Windows (Option and Backslash on a Mac). Press Tab to accept a suggestion, or keep typing to ignore it.

  • Your script needs at least a few lines of code before Code Assist suggests anything, and the manual shortcut does not always produce a suggestion.
  • There is a daily cap on the number of suggestions. Roblox's docs do not give the number. Once you reach it, you get no suggestions until the next day.
  • To turn it off, open Studio Settings (Alt and S, or Option and S on a Mac) and look in the Script Editor tab. Roblox's release announcement says you can disable automatic suggestions only, or Code Assist entirely.
On this page
  1. What it is
  2. How to use it
  3. Turn it on or off
  4. Better suggestions
  5. Documented limits
  6. Privacy and data
  7. Which tool when
  8. Not working
  9. Agent option
  10. Questions
  11. Sources

What Code Assist is, and what it is not

Roblox's Script Editor documentation describes Code Assist as a feature that suggests lines or functions of code as you type. The suggestions come from an AI model and are based on the context of your comments and code. Roblox's AI overview lists it under development assistance as real-time code completions based on the context of your script and comments.

Studio has three things that can look alike when you are scripting. They are separate features with separate behaviour.

Three script helpers in Roblox Studio, based on Roblox's documentation
AutocompleteCode AssistAssistant
What it isThe Script Editor's built-in completion listAI code completion in the Script EditorAn AI chat window that can act on your place
What it gives youNames from your place and your own variables, API documentation pop-ups, function signaturesSuggested lines or whole functions, written by an AI modelAnswers, new or edited scripts, objects, generated content
How it startsAs you typeWhen you pause for a few seconds, or with Alt and BackslashWhen you send a request in the Assistant window
How you acceptTab or EnterTabIt inserts or edits the script itself
Documented capNoneA daily cap on suggestions, number not givenSee Assistant limits

Code Assist does not chat, does not create scripts or objects, and does not run or test your code. It only proposes text at your cursor. For the chat window, see how to use AI in Roblox Studio.

How to use Code Assist

  1. Open a script. The Script Editor opens when you create a new script or double-click an existing one in the Explorer window.
  2. Write a few lines. Roblox's docs say a script currently needs to contain at least a few lines of code to trigger a suggestion. A comment that describes what you want next gives the model something to work from.
  3. Pause on a line. A suggestion appears automatically when you pause for a few seconds and the AI model has enough context.
  4. Or ask for one. Press Alt and Backslash on Windows, or Option and Backslash on a Mac.
  5. Press Tab to accept the suggestion. To ignore it, keep typing.
  6. Read what you accepted, then test it. Roblox's docs say it is your responsibility to review, test and decide whether a suggestion fits.

Roblox's release announcement of February 2024 describes Code Assist as designed to stay out of the way: it offers a suggestion only when it has a high level of confidence in predicting your next step. So a script where nothing appears is not always a fault. The same announcement says it works with Team Create, live scripting and Drafts.

How to turn Code Assist on or off

Code Assist is not a beta feature. Roblox announced its full release in February 2024, and Roblox's AI overview says features that are generally available are on by default. There is nothing to install.

The switch is in Studio Settings. This is what Roblox documents, in two places:

  • The current docs say many Script Editor options are in the Script Editor tab of Studio Settings, and that Studio Settings opens with Alt and S on Windows or Option and S on a Mac. The settings window has a search field at the top for finding a setting by keyword. The docs do not name the Code Assist settings themselves.
  • The release announcement (22 February 2024) says you can modify Studio Settings to disable auto-suggestions or to turn off Code Assist entirely. Its screenshot shows a Code Assist group in the Script Editor tab with two checkboxes: Enable Code-Assist, and Auto-trigger, which is labelled with the manual shortcut.
  1. Open Studio Settings with Alt and S (Option and S on a Mac).
  2. Select the Script Editor tab and find the Code Assist group. If you cannot see it, type code assist in the search field at the top of the window.
  3. To stop suggestions from appearing by themselves but keep the shortcut, clear Auto-trigger.
  4. To turn Code Assist off completely, clear Enable Code-Assist. To turn it back on, tick the box again.

Code Assist is not controlled from the Assistant window. Closing or ignoring Assistant does not turn off suggestions in the Script Editor, and turning off Code Assist does not remove Assistant.

How to get better suggestions

Suggestions are built from what is already in the script, so tidy code and clear comments matter. These tips are from Roblox's Script Editor documentation:

  • Break code into smaller functions.
  • Name scripts for what they do. Roblox's example: SyncCustomSounds instead of Sounds.
  • Use descriptive names for parts, parameters and functions. A part called GreenSphere instead of grs, a function called generateSphere() instead of gen(). Named functions can produce better hints than anonymous ones.
  • Write comments that describe the task and what goes in and comes out. Sample calls with expected results help.
  • Say how to solve it. A comment such as -- Use raycast steers the suggestion.
  • Use your exact names in comments. Roblox's example: -- Create 10 greenSphere objects instead of -- Create 10 spheres.
  • Start small if you are new. Roblox suggests basic projects such as making the player jump when they touch a part, or generating small snippets and expanding them as you learn.

If scripting is new to you, Roblox scripting for beginners covers the basics that make suggestions easier to judge, and where scripts run explains the one thing a completion cannot decide for you: whether the code belongs on the server or the client.

Documented limits of Code Assist

Roblox lists these limitations in the Script Editor documentation. They are Roblox's own words about its tool, restated plainly.

Code Assist limitations in Roblox's documentation, 13 November 2026
LimitWhat the docs say
Daily capThere is a daily cap on the number of suggestions. Once you reach it, you get no suggestions until the next day. The number is not given.
Minimum contextThe script needs at least a few lines of code to trigger a suggestion.
Manual triggerThe shortcut does not always force a suggestion.
Older APIsSuggestions are learned from a body of existing code and can reflect its limits. They may use older APIs instead of newer ones, or Lua instead of Luau.
Wrong codeThe tool may generate incorrect or misleading information that is not useful for your purpose.
Cut-off suggestionsA suggestion may be incomplete because the model's output length is limited.
FiltersInternal filters try to block offensive language, but Roblox says they are not all-encompassing.
Different resultsSuggestions may be the same, similar or different between users, even with the same prompts.

What the docs do not say. Roblox's documentation does not give the size of the daily cap, the time of day it resets, whether accepted and ignored suggestions count the same, or which AI model produces the suggestions. If a website quotes an exact number of suggestions per day, it did not come from Roblox's documentation.

Privacy: what Roblox says about your code

Roblox documents this in two places: a short Code privacy note in the Script Editor documentation, and a longer AI data sharing page that covers all of its AI tools and names Code Assist first.

The Code privacy note

  • Roblox says it currently does not use any non-public data to train the learning models behind Code Assist. It uses a small subset of free marketplace assets to tune them, and that subset has passed quality and safety checks.
  • All suggestions are generated by the AI model and do not transfer from one user to another.
  • Your code will never be shared with others, and it will not be suggested to other Code Assist users. Roblox names one exception: code posted in free marketplace items.

The AI data sharing page

  • When you publish a game in Studio, upload an avatar item, or upload a paid asset to the Creator Store, you can choose whether to share that data for training Roblox's generative AI models. Sharing a game includes its scripts.
  • The default is on for games, avatar items and paid assets published on or after 10 July 2024, and off for those published before that date. You can override it each time you publish.
  • Free Creator Store assets are always shared, with no way to turn that off.
  • To change your default: on the Creator Hub, click your user name, then Settings, then Data Sharing, and switch Make sharing data the default option when publishing experiences on or off. The same page lets you choose individual games and assets.
  • Roblox says shared data is used only to improve its AI, is not shared with third parties, contains no personal information and is split into small snippets for further anonymisation.
  • If you stop sharing something, Roblox says it removes it from the training data within 30 days, and updates models trained on it within 365 days.
  • An earlier program let you share scripts only with Roblox. Roblox says it no longer uses that script data. The separate public Luau dataset is unchanged, and has its own Public Luau tab on the Creator Hub.

What the docs do not say. The two pages are not written to match each other: one says no non-public data trains Code Assist, the other says games you choose to share can train Roblox's generative models. If this matters to you, the Data Sharing setting on the Creator Hub is the control Roblox gives you. The docs also do not say how much of your open script is sent to produce a suggestion, where the model runs, or how long that request is kept.

Code Assist, Assistant or something else

Code Assist suits people who are already writing the script and want the next few lines faster. Roblox's announcement says it is primarily designed to help proficient scripters write code more efficiently, and that suggestions still need review. For other jobs, a different tool fits better.

Which built-in tool fits which job
You want toUseWhy
Finish a line or a function you have startedCode AssistIt completes at the cursor from your code and comments.
Understand a scriptAssistantRoblox's docs say it can explain selected code in the Script Editor, including code you wrote.
Get a new script from a descriptionAssistantIt creates the script and adds it to the selected object.
Work from your own editor with your own AI modelThe Studio MCP serverA client such as Claude Code or Cursor reads and edits scripts in your open place. See the MCP setup guide.
Know every lineWrite it yourselfSlower at first. Start with scripting for beginners.

Roblox's announcement suggests one pairing for learners: accept a Code Assist suggestion, select it, and ask Assistant to explain it.

Code Assist not working: common causes

Roblox documents the first four causes. The rest are general checks that are safe to try.

No suggestions appear at all

Check that the script has a few lines of code already: Code Assist does not suggest in an empty or nearly empty script. Then pause on a line for a few seconds, or press Alt and Backslash (Option and Backslash on a Mac).

The shortcut does nothing

Roblox's docs say manual triggering does not always force a suggestion. Add a comment that describes the next step, or a line or two of code, and try again.

It worked earlier today and then stopped

You may have reached the daily cap. The docs say you then get no suggestions until the next day. They do not give the number or the reset time.

Suggestions are cut off partway

The docs say a suggestion may be incomplete because the model's output length is limited. Accept what is useful and write the rest, or trigger another suggestion from the new last line.

Suggestions stopped after someone changed settings

Open Studio Settings with Alt and S (Option and S on a Mac), go to the Script Editor tab and check the Code Assist options. See how to turn it on or off.

Suggestions use old or deprecated functions

This is a documented limitation: suggestions may prefer older APIs, or Lua instead of Luau. Check the Engine API reference and replace the old call.

Nothing AI-related works in Studio

Update Studio with the Update button in the upper-right corner if it is showing, check your connection, and look at status.roblox.com. For the Assistant window itself, see Assistant troubleshooting.

A different kind of tool: an agent such as RoCode

Code Assist completes code while you type. An agent takes a description and does the steps. RoCode is an AI agent for Roblox Studio made by the RoCode team, an independent product not affiliated with, endorsed by or sponsored by Roblox Corporation. You describe a change in a web chat at rocode.app, and a free plugin from the Creator Store carries it out in the place you have open. It has its own allowance: the free Starter plan includes 1 credit a day, refilled at 00:00 UTC. It is not code completion and does not appear in the Script Editor, so the two do different jobs and can be used side by side.

You type

Add a server script so touching any part in the Checkpoints folder in Workspace sets that player's respawn point.

RoCode does
  • Can look through the place first with List Children and Search Scripts, to find the Checkpoints folder and any checkpoint code already there
  • Writes the server script with Create Script, or changes an existing one with Edit Script
  • Compile-checks the script inside Studio with Check Script before it finishes. The check does not type-check, lint or run your code
  • Sends its changes in batches, each marked as an undo point in Studio's history

As with Code Assist, the result is code you should read and test: press Play and run the course yourself. The prompt is an example written by us; the steps use the real tool names. How RoCode compares with Assistant.

Questions

What is Code Assist in Roblox Studio?

Code Assist is AI code completion in the Script Editor. It suggests lines or whole functions based on your code and comments, either when you pause on a line for a few seconds or when you press Alt and Backslash (Option and Backslash on a Mac). Tab accepts a suggestion.

How do I turn off Code Assist in Roblox Studio?

Open Studio Settings with Alt and S (Option and S on a Mac) and go to the Script Editor tab. Roblox's release announcement shows a Code Assist group there with Enable Code-Assist and Auto-trigger checkboxes: clear the first to turn it off, or only the second to keep the shortcut. The current docs do not name these settings, so use the search field if the labels differ.

Is Roblox Code Assist free?

Roblox Studio is free and the Code Assist documentation lists no price. It does have a daily cap on the number of suggestions. The docs do not say how many.

What is the Code Assist daily limit?

Roblox's documentation says there is a daily cap on suggestions and that you get none until the next day once you reach it. It does not publish the number or the reset time.

Does Roblox use my code to train Code Assist?

The Script Editor docs say Roblox currently does not use non-public data to train the models behind Code Assist, and that your code is not suggested to other users, except code posted in free marketplace items. Separately, games you publish can be shared for AI training, on by default for games published on or after 10 July 2024. You control that under Settings > Data Sharing on the Creator Hub.

Is Code Assist the same as Roblox Assistant?

No. Code Assist completes code at your cursor in the Script Editor. Assistant is a chat window that answers questions and can create scripts and objects in your place. They have separate settings and separate limits.

What is the Code Assist shortcut?

Alt and Backslash on Windows, Option and Backslash on a Mac. Roblox's docs note that the shortcut does not always produce a suggestion.

Sources and further reading

Try RoCode on your own place.

Free every day with 1 credit, refilled at 00:00 UTC. Install the plugin, describe the feature, and review what lands in Studio.