So uh, I’m new to coding plugins and I really need some help. I’m having issues parenting a GUI to a widget. The script can’t seem to find any objects that are a child of it. Any replies would be appreciated.
Code:
local UI = script:WaitForChild("UI")
local toolbar = plugin:CreateToolbar("Script Creator")
local button = toolbar:CreateButton(
"Script Creator", -- ID
"Script Creator", -- Tooltip
"" -- Image
)
local widget = plugin:CreateDockWidgetPluginGui(
"Script Creator",
DockWidgetPluginGuiInfo.new(
Enum.InitialDockState.Float,
false,
true,
150,
150,
100,
100
)
)
widget.Title = "Script Creator"
UI.Parent = widget
button.Click:Connect(function()
widget.Enabled = true
end)