Hey Devs! I’m trying to make a widget for this red frame. How could I do that?
Thanks!
Read it already. Still can’t understand lol
So, what exactly you didn’t understand?
-- 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
150 -- Minimum height of the floating window
)
-- Create new widget GUI
local testWidget = plugin:CreateDockWidgetPluginGui("TestWidget", widgetInfo)
testWidget.Title = "Test Widget" -- Optional widget title
This is very easy to replicate with the script, you can read this article Plugins | Roblox Creator Documentation, it may help you.
If you’re looking for parenting objects to the widget it’s very simple as set .Parent = testWidget
, you only need its size to scale UDim2.new(1, 0,1, 0)
and you should be done.