Hi, I created a plugin for which I made the Gui today. However, the gui is not displayed correctly. Do you have any ideas what the error could be and how you can fix it?
On the right you can see what it should look like, on the left what it looks like. The size does not matter because the gui itself was created correctly.
My code looks like this:
local Toolbar = plugin:CreateToolbar("PINO's Plugins")
local PluginButton = Toolbar:CreateButton("Straßenschilder", "Platziere Straßenschilder", "rbxassetid://6896293644", "PINO")
local Opened = false
local PluginWidgetInfo = DockWidgetPluginGuiInfo.new(
Enum.InitialDockState.Left,
false,
false,
0.25,
0.5,
0.25,
0.5
)
local PluginWidget = plugin:CreateDockWidgetPluginGui("Straßenschilder", PluginWidgetInfo)
PluginWidget.Title = "PINO's Straßenschilder"
script.Parent.PluginGui.Parent = PluginWidget
PluginButton.Click:Connect(function()
if Opened then
PluginWidget.Enabled = false
Opened = false
else
PluginWidget.Enabled = true
Opened = true
end
end)
After browsing the forum for about 3 hours for an article that helps me, I now hope that you can help me
PinoRisi
Please excuse that the script is partly in German