So I want to a make a plugin that is called Broken’s helpful tools
I put it in a different script cause I thought that was why but it wasn’t
Here is the code:
-- Create a new toolbar section titled "Custom Script Tools"
local toolbar = plugin:CreateToolbar("Broken's Helpful Tools")
local mouse = plugin:GetMouse()
--local toolbar2 = plugin:CreateToolbar("Broken's Helpful Modeling Tools")
--local toolbar3 = plugin:CreateToolbar("Broken's Settings")
local properties = toolbar:CreateButton("Change the properties of Broken's Helpful Tools", "Settings", "rbxassetid://6550054988")
local propertieinfo = DockWidgetPluginGuiInfo.new(Enum.InitialDockState.Float,
false,
false,
200,
200,
150,
150)
local widget = plugin:CreateDockWidgetPluginGui("Properties", propertieinfo)
local widget2 = plugin:CreateDockWidgetPluginGui("Model", propertieinfo)
widget2.Title = "Modeling"
local movemode = false
local movebutton = toolbar:CreateButton("Modeling", "Advanced modeling to help out with builds", "rbxassetid://413367266")
local function clickopen()
widget2.Enabled = not widget2.Enabled
end
movebutton.Click:Connect(clickopen)
widget.Title = "Broken's Properties"
script.Parent.Frame.Parent = widget
script.Parent.Tool.Parent = widget2
local function propertiesbutton()
widget.Enabled = not widget.Enabled
end
properties.Click:Connect(propertiesbutton)
local scriptnameproperty = true
-- Add a toolbar button named "Create Empty Script"
local newScriptButton = toolbar:CreateButton("Create Script", "Make a script", "rbxassetid://95866080")
local function onNewScriptButtonClicked()
local newScript = Instance.new("Script")
newScript.Source = 'print("Hello World")'
newScript.Parent = game:GetService("ServerScriptService")
end
newScriptButton.Click:Connect(onNewScriptButtonClicked)
local ExampleButton1 = toolbar:CreateButton("Create a player example Script", "Make a Example script", "rbxassetid://95866080")
local function PressExampleButton1()
local ExampleScript = Instance.new("Script")
if scriptnameproperty == true then
ExampleScript.Name = "Player Example Script"
end
ExampleScript.Source = "--Example's for this that we can do for players is game.Players.PlayerAdded Here is a example\
game.Players.PlayerAdded:Connect(function(Player)\
print(Player.Name) \
end)\
-- Another example that we can get a player with game.Players.PlayerAdded is this\
for i, v in pairs(game.Players:GetPlayers()) do\
print(v.Name)\
end"
ExampleScript.Parent = game.ServerScriptService
end
mouse.Button1Down:connect(function()
print("Mouse")
end)
widget.Frame.ScriptName.MouseButton1Click:Connect(function()
if scriptnameproperty == true then
scriptnameproperty = false
widget.Frame.ScriptName.Text = "ScriptNames: False"
elseif scriptnameproperty == false then
scriptnameproperty = true
widget.Frame.ScriptName.Text = "ScriptNames: True"
end
end)
ExampleButton1.Click:Connect(PressExampleButton1)
--widget:GetPropertyChangedSignal("AbsoluteSize"):Connect(function()
--widget.Frame.Size = UDim2.new(widget.Size.x, widget.Size.y)
--end)
mouse.Button1Down:Connect(function()
print('Button')
end)