Roblox Plugins Help

So today I attempted to make a plugin for myself and my friend to use personally. Aswell as a few developers im friends with. Since I was pretty new to plugins and their features and not that familiar with them as of the rest of the lua. So far I’ve tried this

local ChangeHistoryService = game:GetService(“ChangeHistoryService”)

local toolbar = plugin:CreateToolbar(“Custom Gui Tools”)

local newScriptButton = toolbar:CreateButton()

newScriptButton.Click:Connect(function()
Instance.new(“ScreenGui”)
end)

Im a bit confused on what to do next. The main goal is that you can click the plugin and a pannel appears with buttons which do certain things. Like one may create a script another might destroy it. And so on.

Well thats a bit weird, Have you tried re opening Studio? Or commit the scripts?

Parent the new screengui somewhere, otherwise it will not show up anywhere.
like

local ChangeHistoryService = game:GetService(“ChangeHistoryService”) --changehistoryservice

local toolbar = plugin:CreateToolbar(“Custom Gui Tools”) --name the plugin

local newScriptButton = toolbar:CreateButton() --create a button in the toolbar

newScriptButton.Click:Connect(function() --button click function
print("ScreenGui Made")
local new = Instance.New("ScreenGui")
new.Parent = game.StarterGui --Parent the new GUI to part of the game
new.Name = "ScreenGui" --name it (Optional)
end)

I hope this fixes your problem.

References that may help later on:

Thanks I tested it and it worked.

1 Like