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:
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)
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.