I’ve made a plugin that creates a gui which then you can click to do a certain thing but the problem is, is that when I click it nothing happens.
Here is the script I have
local A = plugin:CreateToolbar("Hidden Name"):CreateButton("Hidden Name", "Hidden Desc", "Hidden Asset")
A.Click:Connect(function()
local NewGui = Instance.new("ScreenGui")
local InstructionsLabel = Instance.new("TextButton")
local B = Instance.new("TextBox")
NewGui.Parent = game.StarterGui
InstructionsLabel.Parent = NewGui
InstructionsLabel.Size = UDim2.new(1,0,1,0)
local S = Instance.new("LocalScript")
S.Parent = InstructionsLabel
S.Source = [[script.Parent.MouseButton1Click:Connect(function()
print("eyyyyy")
end)
]]
end)
I have also tried this with normal scripts
local A = plugin:CreateToolbar("Hidden Name"):CreateButton("Hidden Name", "Hidden Desc", "Hidden Asset")
A.Click:Connect(function()
local NewGui = Instance.new("ScreenGui")
local InstructionsLabel = Instance.new("TextButton")
local B = Instance.new("TextBox")
NewGui.Parent = game.StarterGui
InstructionsLabel.Parent = NewGui
InstructionsLabel.Size = UDim2.new(1,0,1,0)
local S = Instance.new("Script")
S.Parent = InstructionsLabel
S.Source = [[script.Parent.MouseButton1Click:Connect(function()
print("eyyyyy")
end)
]]
end)
I’m pretty fresh to plugins so I don’t know how to create one where the buttons work in studio.