I am not sure why the UI I made for my plugin is not showing even though I parented it to the widget…
local ToolBar = plugin:CreateToolbar("SimpleScript")
local SimpleButton = ToolBar:CreateButton("SimpleScipt", "Insert Script Interface", "")
local Status = false
local PluginInfo = DockWidgetPluginGuiInfo.new(
Enum.InitialDockState.Left,
false,
false,
240,
228,
100,
100
)
local Widget = plugin:CreateDockWidgetPluginGui("SimpleScript", PluginInfo)
Widget.Title = "SimpleScript"
local SimpleScriptUI = script.Parent:FindFirstChild("UI")
SimpleScriptUI.Parent = Widget
function Triggered()
if Status then
Widget.Enabled = false
Status = false
else
Widget.Enabled = true
Status = true
end
end
SimpleButton.Click:Connect(Triggered)