As you can see, there’s a large white box around the GUI.
How can I fix this so that only the GUI will appear and not that box.
Script:
local Toolbar = plugin:CreateToolbar("CbrahDev")
local SkiesButton = Toolbar:CreateButton("Cbrah's Skies", "Select from a wide variety of skyboxes", "rbxassetid://8515224301") -- TEMP LOGO
local Opened = false
local SkyboxGuiInfo = DockWidgetPluginGuiInfo.new(
Enum.InitialDockState.Left,
false, -- Initially enabled
false, -- idk lol
600,
600,
150,
150
)
local SkyboxGui = plugin:CreateDockWidgetPluginGui("Cbrah's Skies", SkyboxGuiInfo)
SkyboxGui.Title = "Skies"
script.Parent.SkyGui.Parent = SkyboxGui
SkiesButton.Click:Connect(function()
if Opened then
SkyboxGui.Enabled = false
Opened = false
else
SkyboxGui.Enabled = true
Opened = true
end
end)
Theres a object in studio called core gui. Instead of using a widget(what you’re currently using). Replace that code by parenting it to core gui. So just do gui.parent = game:getservice(“coregui”). And replace the widget code with what i just said
Those plugins haven’t updated yet to support Widgets. Using CoreGui, you have to write more code to deal with parenting and unparenting from the CoreGui and other things.
It’s outdated because there is a superior approach to making Plugin GUI’s now. Widgets are officially supported while CoreGui plugins are NOT officially supported.