Hello, I'm new to scriptinghelpers so I'm sorry if this is hard to understand.

So, I made 2 plugins and I want them to be in the same section like these plugins..

For refrence, I'll provide the code for both plugins.

The "Delete all scripts" plugin:

local ChangeHistoryService = game:GetService("ChangeHistoryService")

local toolbar = plugin:CreateToolbar("Dax009YT's plugins")

local PluginButton = toolbar:CreateButton("Remove all scripts", "This plugin removes all scripts.", "rbxassetid://59411151")
 
local function onButtonClicked()
a = game.Workspace:getChildren()
for i = 1, #a do
if a[i].className == "Script" then
a[i]:Remove()
end
b = a[i]:getChildren()
for i = 1, #b do
if b[i].className == "Script" then
b[i]:Remove()
end
end
end
end
PluginButton.Click:Connect(onButtonClicked)

The "Create a Truss" Plugin:

local ChangeHistoryService = game:GetService("ChangeHistoryService")

local toolbar = plugin:CreateToolbar("Dax009YT's plugins")

local PluginButton = toolbar:CreateButton("Create a Truss", "Create a TrussPart in Workspace", "rbxassetid://4873924027")
 
local function onButtonClicked()
	local Truss = Instance.new("TrussPart")
	Truss.Parent = game:GetService("Workspace")
	ChangeHistoryService:SetWaypoint("Added new TrussPart to workspace")
end
PluginButton.Click:Connect(onButtonClicked)

2 comments

0

You would create both buttons on the toolbar

0

you would just do toolbar:CreateButton() for the first and second button.