Plugins are really just scripts that can run in studio (sort of like the Command Bar). They have their own class and services which are exclusively used for plugin development.
You can start off just by creating script like you would normally do (You may want to put this in ServerStorage
so it isn’t running in game).
To create a button that appears in the “PLUGINS” tab, you can first create a toolbar like this
local toolbar = plugin:CreateToolbar("My Plugin")
Then to add a button to the toolbar, you can do toolbar:CreateButton()
local button = toolbar:CreateButton("My Button", "Description here", "rbxassetid://0")
And this button will have its own properties and events, like Click
, which can be connected to a function like this
button.Click:Connect(function()
print("Hello world")
end)
Now we can save this script by right-clicking on it in the Explorer window and selecting either Publish as Plugin...
(which will prompt you to publish it to Roblox), or Save as Local Plugin...
, which will save it to your files in Roblox’s AppData.
If we save it as a local file, then it should now appear as its own button in the “PLUGINS” tab along with any other plugins you’ve installed. By clicking on it, it should print “Hello world” in the output.
(Since an invalid image was entered, it’ll appear as an X and have an error in the output)
Of course this is just a simple way to create a very basic plugin with a button and an output. There are a lot more things you can do, like with Widgets and special Services for the Script Editor, themes, and a lot of other things, but this should hopefully give you a basic idea of how they work.
If you want to go more in depth and create an actual plugin, I’d recommend checking out the Docs for some of their guides and here on the forums as well