Why is my Gui not parented to the plugin widget?

There is a PluginGuiService, enable this and re run to check if it is present in the widget

with both or only with yours? ()

ok, I will check it right now.

both:


local Toolbar = plugin:CreateToolbar('World Builder Pluguin')


local FoliageGeneratorButton = Toolbar:CreateButton('Foliage Generator', 'A tool helping you to create custom grass, leaves or generally any foliage you desire', 'rbxassetid://5832364067')

local foliageWidget = plugin:CreateDockWidgetPluginGui(
	'Foliage Creator',
	DockWidgetPluginGuiInfo.new(
	Enum.InitialDockState.Float, 
	false,                       
	true,                       
	340,                         
	350,                         
	340,                         
	350
	)                         
)

foliageWidget.Title = 'Foliage Generator'
foliageWidget.Name = "Foliage Generator"

local Gui = script:WaitForChild("ScreenGui"):Clone()
Gui.Parent = foliageWidget


FoliageGeneratorButton.Click:connect(function()
	plugin:Activate(true);
	foliageWidget.Enabled = foliageWidget.Enabled and false or true; 
end)

only yours:

local Toolbar = plugin:CreateToolbar('World Builder Pluguin')


local FoliageGeneratorButton = Toolbar:CreateButton('Foliage Generator', 'A tool helping you to create custom grass, leaves or generally any foliage you desire', 'rbxassetid://5832364067')

local foliageWidget = plugin:CreateDockWidgetPluginGui(
	'Foliage Creator',
	DockWidgetPluginGuiInfo.new(
	Enum.InitialDockState.Float, 
	false,                       
	true,                       
	340,                         
	350,                         
	340,                         
	350
	)                         
)

foliageWidget.Title = 'Foliage Generator'
foliageWidget.Name = "Foliage Generator"

local Gui = script:WaitForChild("ScreenGui"):Clone()
Gui.Parent = foliageWidget


FoliageGeneratorButton.Click:connect(function()
	plugin:Activate(true);
	foliageWidget.Enabled = not foliageWidget.Enabled
end)

Is the ScreenGui called ā€œScreenGuiā€?

Obviouslyā€¦ I wouldnā€™t post anything if I hadnā€™t double-checked everything.

I enabled it, and still nothing happens

Do you see the service? If not then restart Roblox Studio.

What do you mean when saying ā€œI see the serviceā€?

Is the service present in the explorer window?

No, I donā€™t. Maybe I am doing it wrong.

This is what I am writing:
local GuiService = game:GetService("PluginGuiService")
Iā€™ve also tried. plugin:GetService but it resulted to an error.

No you enable it in Settings, it is a non-createable service

1 Like

Which settings? There is nothing called pluginGuiService in the game settings. Are you talking about different settings?

It should be in settings, under Studio with the name of Show Plugin GUI Service in Explorer

Ok, I activated it. What should I do now?