Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I put two plugins in one section in ROBLOX Studio?

Asked by 4 years ago
Edited 4 years ago

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)
0
You would create both buttons on the toolbar User#29913 36 — 4y
0
you would just do toolbar:CreateButton() for the first and second button. killerbrenden 1537 — 4y

Answer this question