Problem with plugin

Anybody have any clue why this doesn’t work?
It prints Loaded to the output, but I can’t see the GUI.
It prints no errors, except it warns this:
image
I used the Gui to Lua plugin to get the properties.

-- Create new 'DockWidgetPluginGuiInfo' object
local widgetInfo = DockWidgetPluginGuiInfo.new(
	Enum.InitialDockState.Float,  -- Widget will be initialized in floating panel
	true,   -- Widget will be initially enabled
	false,  -- Don't override the previous enabled state
	200,    -- Default width of the floating window
	300,    -- Default height of the floating window
	150,    -- Minimum width of the floating window (optional)
	150     -- Minimum height of the floating window (optional)
)
 
-- Create new widget GUI
local testWidget = plugin:CreateDockWidgetPluginGui("TestWidget", widgetInfo)
 
local Frame = Instance.new("ImageButton")
local TextLabel = Instance.new("TextLabel")

Frame.Name = "Frame"
Frame.AnchorPoint = Vector2.new(0.5, 0.5)
Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Frame.BorderSizePixel = 0
Frame.Position = UDim2.new(0.12, 0, 0.05, 0)
Frame.Size = UDim2.new(0.2, 0, 0.06, 0)
Frame.Image = "rbxassetid://2790382281"
Frame.ImageColor3 = Color3.fromRGB(35, 35, 35)
Frame.ImageTransparency = 0.300
Frame.ScaleType = Enum.ScaleType.Slice
Frame.SliceCenter = Rect.new(4, 4, 252, 252)
Frame.Parent = testWidget

TextLabel.AnchorPoint = Vector2.new(0.5, 0.5)
TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextLabel.BackgroundTransparency = 1.000
TextLabel.BorderSizePixel = 0
TextLabel.Position = UDim2.new(0.12, 0, 0.05, 0)
TextLabel.Size = UDim2.new(1, 0, 1, 0)
TextLabel.Font = Enum.Font.GothamBold
TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
TextLabel.TextScaled = true
TextLabel.TextSize = 14.000
TextLabel.TextWrapped = true
TextLabel.Parent = testWidget

print("Loaded!")

Edit: and yes, the beginning is copy pasted straight from the wiki.
Edit 2: I’m saving the Server Script as a Local Plugin (inside of Workspace)

2 Likes

Been fiddling with it for quite awhile now and still can’t figure it out…

1 Like

I means nothing. Just a roblox error. It fixes itself. It came with the new roblox update.

2 Likes

Right but I still can’t see the Plugin GUI

1 Like

You need to make the plugin GUI visible. You missed something. You said nothing wrong.

1 Like

I did Frame.Visible = true and TextLabel.Visible = true, still can’t see it.
It’s a server script in workspace that I’m saving as a local plugin.

1 Like

Is your Plugin active thanks to the :SetActive(Boolean) function?
And you should make a onButtonClick() function, to disable and enable the plugin

1 Like

Hello,

image does not effect your game in anyway. It is normal for it to show in the output.

2 Likes

I never declared that, nope. Just copy pasted from the wiki, which wasn’t there.

2 Likes

That’s not the issue though, read it all.

2 Likes

Why not try with youtube?

Then just customize.

You should FIRST see how to correctly create a plugin THEN create widgets @c7c

1 Like

I watched that, that tutorial doesn’t show widgets.
Edit: The plugin widget on the wiki works perfectly fine. And widgets are pretty simple, so that’s no issue.

1 Like

Use this to learn more on plugins It is a source you can use.

2 Likes

To make that widgets works you need a plugin

1 Like

It works or it no works? I am confused…

1 Like

The plugin I copied from the wiki works, my edited version doesn’t, and all I changed was the instances.

2 Likes

Show us the full code pls else we can’t really help

1 Like

that is the full code, like I said, I copy pasted from the wiki.

1 Like

Nonono, save in StarterGui, this should works (i hope)

1 Like

Saved in startergui, still didn’t work. I don’t think it matters where you save it.

1 Like