I have one name “Shaehl’s plugins” for each my plugin, but for some reasson, they are not in the same group…
Screenshot
I using :CreateToolbar()
, because don’t know another way to do it. Want to ask you!
Plugins was maded for me, not for sale.
I have one name “Shaehl’s plugins” for each my plugin, but for some reasson, they are not in the same group…
I using :CreateToolbar()
, because don’t know another way to do it. Want to ask you!
Plugins was maded for me, not for sale.
To create buttons in the same toolbar, you must call the method on the same toolbar. For example,
local toolbar = plugin:CreateToolbar("shah3l's Plugins Pack")
local weldItButton = toolbar:CreateButton("Weld it!", "Create a new weld with ease!", "rbxassetid://12345678")
local roundFrameCreator = toolbar:CreateButton("Make Round Framen", "Create a new round frame!", "rbxassetid://87654321")
You cannot - to my knowledge - create a common toolbar for seperate plugins, you must use Toolbar:CreateButton()
on the same Toolbar
from the same script
You want to say that Roblox has no way to create buttons not in one script? Sadly…
Thx, i solved my problem.
I just understood, that is Instance, and used this code:
local ToolBar = game:FindFirstChild("SHP")
if not ToolBar then
ToolBar = plugin:CreateToolbar("Shaehl's plugins")
ToolBar.Name = "SHP"
ToolBar.Parent = game
end
For security reasons, you should probably put the toolbar into the CoreGui with game:GetService("CoreGui")
.
That means you should do this instead:
local CoreGui = game:GetService("CoreGui")
local ToolBar = CoreGui:FindFirstChild("SHP")
if not ToolBar then
ToolBar = plugin:CreateToolbar("Shaehl's plugins")
ToolBar.Name = "SHP"
ToolBar.Parent = CoreGui
end
I don’t see difference, because toolbar can be reached only from where there is access. But ok.