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
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.
| Autocomplete | Code Assist | Assistant | |
|---|---|---|---|
| What it is | The Script Editor's built-in completion list | AI code completion in the Script Editor | An AI chat window that can act on your place |
| What it gives you | Names from your place and your own variables, API documentation pop-ups, function signatures | Suggested lines or whole functions, written by an AI model | Answers, new or edited scripts, objects, generated content |
| How it starts | As you type | When you pause for a few seconds, or with Alt and Backslash | When you send a request in the Assistant window |
| How you accept | Tab or Enter | Tab | It inserts or edits the script itself |
| Documented cap | None | A daily cap on suggestions, number not given | See 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
- Open a script. The Script Editor opens when you create a new script or double-click an existing one in the Explorer window.
- 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.
- Pause on a line. A suggestion appears automatically when you pause for a few seconds and the AI model has enough context.
- Or ask for one. Press Alt and Backslash on Windows, or Option and Backslash on a Mac.
- Press Tab to accept the suggestion. To ignore it, keep typing.
- 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.
- Open Studio Settings with Alt and S (Option and S on a Mac).
- Select the Script Editor tab and find the Code Assist group. If you cannot see it, type
code assistin the search field at the top of the window. - To stop suggestions from appearing by themselves but keep the shortcut, clear Auto-trigger.
- 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:
SyncCustomSoundsinstead ofSounds. - Use descriptive names for parts, parameters and functions. A part called
GreenSphereinstead ofgrs, a function calledgenerateSphere()instead ofgen(). 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 raycaststeers the suggestion. - Use your exact names in comments. Roblox's example:
-- Create 10 greenSphere objectsinstead 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.
| Limit | What the docs say |
|---|---|
| Daily cap | There 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 context | The script needs at least a few lines of code to trigger a suggestion. |
| Manual trigger | The shortcut does not always force a suggestion. |
| Older APIs | Suggestions 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 code | The tool may generate incorrect or misleading information that is not useful for your purpose. |
| Cut-off suggestions | A suggestion may be incomplete because the model's output length is limited. |
| Filters | Internal filters try to block offensive language, but Roblox says they are not all-encompassing. |
| Different results | Suggestions 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.
| You want to | Use | Why |
|---|---|---|
| Finish a line or a function you have started | Code Assist | It completes at the cursor from your code and comments. |
| Understand a script | Assistant | Roblox's docs say it can explain selected code in the Script Editor, including code you wrote. |
| Get a new script from a description | Assistant | It creates the script and adds it to the selected object. |
| Work from your own editor with your own AI model | The Studio MCP server | A client such as Claude Code or Cursor reads and edits scripts in your open place. See the MCP setup guide. |
| Know every line | Write it yourself | Slower 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.
Add a server script so touching any part in the Checkpoints folder in Workspace sets that player's respawn point.
- 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
- Roblox Creator Docs: Script Editor. Code Assist, how suggestions are triggered, the tips, the limitations list, code privacy, editor settings
- Roblox Developer Forum: Code Assist Full Release: AI-powered Code Completion. full release on 22 February 2024, the Studio Settings screenshot with the two Code Assist checkboxes, who it is designed for
- Roblox Creator Docs: Roblox Studio setup. the Studio Settings shortcut and search field, the Update button, Beta Features
- Roblox Creator Docs: AI data sharing. data sharing defaults, the Creator Hub setting, removal times, Public Luau
- Roblox Creator Docs: AI on Roblox. Code Assist among the development tools; generally available features are on by default
- Roblox Creator Docs: Assistant for Studio. explaining code and creating scripts with Assistant
- Roblox Status. current service status