Roblox Studio comes with Lua scripting disabled by default — you need to turn it on in settings before you can write or edit scripts

Roblox Studio is the free tool that lets you build games in Roblox. By default, the script editor is hidden. To write Lua code — the programming language Roblox uses — you have to enable it first. This takes about one minute and happens entirely in your account settings, not in Studio itself.

The setting is called Studio Access to APIs, and it controls whether you can see and edit scripts. Once you turn it on, the script editor appears in Studio and stays available for all your projects.

Key Takeaways

  • Lua scripting in Roblox Studio is disabled by default and must be enabled through your account settings on the Roblox website, not inside Studio.
  • You need a Roblox account and must be signed in to access the settings page where you enable script editing.
  • After enabling the setting, close and reopen Roblox Studio completely for the script editor to appear.
  • The script editor window appears in the lower half of Studio once enabled, and you can expand it by dragging the divider upward.

Step-by-step: Enable Lua scripting in your account settings

Go to www.roblox.com and sign in to your account. Click the gear icon in the top right corner and select Settings. On the left side menu, click Privacy.

Scroll down until you see Studio Access to APIs. The toggle next to it should be off (gray). Click the toggle to turn it on (it will turn blue). Roblox may ask you to confirm your choice — click the confirmation button if it appears. You do not need to restart your browser or do anything else on this page.

Close Roblox Studio completely if it is open. Open Roblox Studio again and create a new place or open an existing one. The script editor should now be visible at the bottom of the screen.

Where to find the script editor once it is enabled

After you enable Lua scripting, the script editor appears as a panel at the bottom of Studio. It shows the code for whichever script or object you have selected in the workspace. If you do not see it, make sure you have selected a script in the left panel (called the Explorer) — the editor only shows content when a script is selected.

The script editor panel takes up about one-quarter of the screen by default. To make it larger, position your cursor on the dividing line between the 3D view above and the script editor below. Your cursor will change to a resize arrow. Click and drag upward to expand the editor and see more code at once.

What you can do once scripting is enabled

With Lua scripting enabled, you can create new scripts by right-clicking in the Explorer panel and selecting Insert Object, then Script. You can also edit existing scripts by clicking them in the Explorer and typing in the editor panel below.

Scripts in Roblox run Lua code that controls how your game behaves — things like what happens when a player touches a part, how much damage a weapon does, or when a door opens. The script editor includes basic syntax highlighting (code appears in different colors based on what it does) and line numbers on the left, which help you find errors when your code does not work as expected.

Troubleshooting: Script editor does not appear

If you enabled the setting but still do not see the script editor, close Studio completely and open it again. Sometimes Studio needs a full restart to load the new setting. Make sure you are signed into Studio with the same account you used to enable the setting in your privacy settings.

If the editor still does not appear after restarting, go back to your privacy settings and confirm the toggle is actually on (blue, not gray). Some accounts take a few minutes to sync the change across Roblox's servers, so wait five minutes and restart Studio again if needed.

Why Roblox hides scripting by default

Roblox disables script editing for new accounts as a safety measure. Young players or people new to the platform can build games using only the visual tools — placing parts, adding models, and adjusting properties without writing code. This keeps the interface simpler for people who do not want to program.

Once you enable scripting, you have full access to Lua and can write code that does almost anything inside your game. This is why the setting exists as an opt-in choice rather than something everyone gets automatically.

Frequently Asked Questions

Do I need to enable scripting for each game I make?

No. Once you enable Studio Access to APIs in your account settings, scripting stays enabled for all your projects. You only need to do it once per account.

Can I disable scripting again after I turn it on?

Yes. Go back to your privacy settings and toggle Studio Access to APIs off. This hides the script editor but does not delete any scripts you have already written — they stay in your game and still run when someone plays it.

What if I enable scripting but my game does not need code?

You do not have to use the script editor just because it is enabled. Many Roblox games use only visual building tools and never write a single line of code. The editor is there if you need it.

Is Lua the only language I can use in Roblox Studio?

Yes. Roblox Studio only supports Lua. If you want to build a Roblox game, Lua is the language you will learn and use.