Hello! Im making a new plugin that creates a gui with different options, however when I run the program (by cloning the script into game:getService("CoreGui")) the menu appears, but none of the buttons are clickable. I would prefer not to use a widget as I want the menu to cover a large amount of the screen, and not be draggable.
script:
local toolbar = plugin:CreateToolbar("Block Code Builder")
local pluginButton = toolbar:CreateButton("Open a Block Coding GUI", "Write code using blocks!", "rbxassetid://4458901886")
local pluginCloseButton = toolbar:CreateButton("Close Plugin", "Closes the Plugin", "rbxassetid://4458901886")
local function onNewScriptButtonClicked()
if game:GetService("CoreGui"):FindFirstChild("DragDropPlugin") then
game:GetService("CoreGui"):FindFirstChild("DragDropPlugin"):Destroy()
end
local GUI = script.Parent.DragDropPlugin:Clone()
GUI.Parent = game:GetService("CoreGui")
end
local function onPluginCloseButton()
if game.CoreGui:FindFirstChild("DragDropPlugin") then
game.CoreGui:FindFirstChild("DragDropPlugin"):Destroy()
end
end
pluginButton.Click:Connect(onNewScriptButtonClicked)
pluginCloseButton.Click:Connect(onPluginCloseButton)

2 comments
Rethink the idea about widgets. Remember they can always be undocked. Alternatively you can start with a ScrollingFrame as the root part so you can infinitely scroll in all directions.
I have already designed a fair bit of the GUI,and don't really want to redo it ;/