I’m creating a plugin, however it’s telling me that plugin is nil. Do you guys have any advice?
local function createGUI()
-- Create new DockWidgetPluginGuiInfo
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
)
-- Create a DockWidgetPluginGui
local dockWidgetPluginGui = plugin:CreateDockWidgetPluginGui("DuplicateRemoverGUI", widgetInfo)
On the last line it’s printing
attempt to index nil with 'CreateDockWidgetPluginGui'