Plugin icon not loading?

Hello!

I have a issue regarding my plugin issue icon, i try to load in the image, yet its not working. I tried on a different image, and it works ok, but its not mine. Heres the code:

local toolbar = plugin:CreateToolbar("Plugin Name") 
local pluginButton = toolbar:CreateButton(
	"UI Tools", 
	"Open UI Tools", 
	"http://www.roblox.com/asset/?id=9212837555")


local info = DockWidgetPluginGuiInfo.new(
	Enum.InitialDockState.Right, 
	false, 
	false, 
	200, 
	300, 
	150, 
	150 
) 

local widget = plugin:CreateDockWidgetPluginGui(
	"TestPlugin", 
	info  

)
widget.Title = "UITOOLSUI"  
script.Parent.UITOOLSUI.Parent = widget
pluginButton.Click:Connect(function()
	widget.Enabled = not widget.Enabled
end) 

I do not know what to do, also here is the image in question:
StarterUIPicture

Probably because the image link doesn’t exist:

Oh, i never saw this. How would i write out this image link correctly? Ive tried getting its exact link, yet it will not work.

Try this link:
https://www.roblox.com/library/9212837555/StarterUIPicture

no!

Nope, same issue. I dont know whats happening.

I’ll just write the script for you here:

local toolbar = plugin:CreateToolbar("Plugin Name") 
local pluginButton = toolbar:CreateButton(
	"UI Tools", 
	"Open UI Tools", 
	"rbxassetid://9212837555")


local info = DockWidgetPluginGuiInfo.new(
	Enum.InitialDockState.Right, 
	false, 
	false, 
	200, 
	300, 
	150, 
	150 
) 

local widget = plugin:CreateDockWidgetPluginGui(
	"TestPlugin", 
	info  

)
widget.Title = "UITOOLSUI"  
script.Parent.UITOOLSUI.Parent = widget
pluginButton.Click:Connect(function()
	widget.Enabled = not widget.Enabled
end) 

Still is not working…plus, ive tried doing the exact thing you have tried.

Could the issue be me saving it as a local plugin?

No, I don’t think so, sorry that I couldn’t help though.

Its all good, hopefully somebody else can help me out with this as ive been working on this for over an hour.

i think if that when the image doesn’t exist anymore, it’ll refuse to load because studio can’t find the image file

The image is not deleted nor moderated, so i cant see the issue.

PluginToolbar:CreateButton() will only take ids that have the “Image” type, aka this (notice how the type is “Image”, rather than “Decal”)

You can get the ID by putting the ID inside of a decal and then copying the ID Studio has auto-converted for you.

1 Like

This worked absolutely perfect! Thanks so much!