Hello people of the dev forums,
I’m currently experiencing some issues with my plugin and was hopeful someone could help.
local newOpen = toolbar:CreateButton("Open menu", "Open menu to select the module of your choice", "http://www.roblox.com/asset/?id=2246054658")
local db = true
local function onOpen()
if db then
db = false
local widgetinfo = DockWidgetPluginGuiInfo.new(
Enum.InitialDockState.Right,
true,
true,
500,
500,
100,
100)
testWidget = plugin:CreateDockWidgetPluginGui("Menu", widgetinfo)
testWidget.Title = "Menu"
local frame = Instance.new("Frame")
frame.Position = UDim2.new(0,0,0,0)
frame.AnchorPoint = Vector2.new(0,0)
frame.Size = UDim2.new(1,0,1,0)
frame.SizeConstraint = Enum.SizeConstraint.RelativeXY
frame.Parent = testWidget
else
db = true
testWidget:Destroy()
end
end
newOpen.Click:Connect(onOpen)
This is my current code, for some reason when I press the button it shows this in the corner:
Any help is much appreciated.
If more code is needed, just ask. (Not all the code)