Introduction of Lua Widgets


Hey developers,

We are happy to introduce the newest feature to your development resources: Lua Widgets for Plugins. Previously, if a plugin had any UI elements, those had to be rendered in the 3d viewport. Now, using Lua Widgets developers can optimize their Studio experience with dockable Lua widgets, separate from the Studio viewport.

Here is a GIF which showcases the new functionality by using terrain tools as an example. Terrain tools are now accessible from the home and view tab.

Shared Lua Libraries for Consistent Studio Look & Feel

To help you use the PluginGui for your Lua widgets, we have created some code to create various GUI elements: buttons, checkboxes, radio buttons, etc. This code also includes common colors, sizes, spacing, etc. These widgets were used to make the new Terrain Tools, which are now hosted in a PluginGui.

The code is available on github:

Please keep the following in mind when using the new Lua Widgets:

  • Lua Widgets cannot be created by Hotswap and similar plugin virtualization at the moment (
  • Lua Widgets have separate instances for “Edit” and “Play” mode
    From Studio code Point Of View, there’s two completely different DataModels: one when you’re editing, and then a copy of that when you’re running.
    Since Plugins (and therefore PluginGui and all contained GUI buttons, text labels, etc) all live in data model, it made sense to just keep that clean division.
    There are two completely separate Dock widgets associated with any plugin that creates a PluginGui.
    The “Edit” Dock widget exists/is available when editing, and the “Play” dock widget exists/is available when playing. The two widgets are unrelated: you may have toggled the “Edit” one to be visible, but the “Play” one will still be not-visible: you may have dragged the Edit one to dock on right side of screen while Play one docks on bottom, etc.
  • Lua Widgets don’t support UserInputService. You will need to listen to button and textbox events.
  • For debugging purposes, you can enable “Show Plugin GUI Service in Explorer” in Studio settings to modify the GUI in the explorer instead of just through scripts.

Check our documentation on the Developer Portal for more information:

The Roblox Team

New Animation Editor Announcement
May Recap: Here's What You Might Have Missed in the Developer Community

Does this mean we can make a plugin that makes the studio dark theme?


T H A N K Y O U!

Glad to see this added. :slight_smile:


Very cool addition


Yeesssssesssesessssssssss I’ve been waiting so long.


please oh please, I have been a dark theme advocate for years


That’s really useful people can use this to make plugins a lot better.


It’s time to begin.

> opens studio
> starts scripting widgets


Love the addition of the StudioWidgets repo!


Oh here we go guys… I’m hyped!


Starting using the feature just before this announcement (thanks @CloneTrooper1019 for his quick edit plugin for popping up automatically).

Nonetheless, this is awesome!


Beyond thrilled for this! ^-^


Seems good, although I haven’t had time to read the full rundown yet nor look at GitHub. More than anything, I hope that @chesse20 is right and this leads to a studio dark theme, even if it’s a plugin and not an official feature.


Time to make a widget to help make GUIs and scripts for them.


Are you going to make your datastore plugin a widget?

It’d be pretty useful because I’m constantly closing and re-opening it because the UI blocks the workspace.


The ultimate practice for scaling UI.
Great feature addition! Studio is about to look a whole lot more professional.


Really excited to cram all of my utilities into one little widget.
Also this example has a typo.




Yeah I’ll remake my datastore editor


I have updated the DockWidgetPluginGuiInfo page to be a little more clear on what each field of the type does.