Why isn't my plugins icon loading?

Hi everyone, I’ve been struggling with an issue for a while with a plugin icon not loading in a plugin which is GUI-based yet it works in a non-GUI based plugin.

Let me show what happens, I’m trying to add https://www.roblox.com/library/6417996232/CashGradient-32px to my plugins icon but it turns out like this.

image

However my other plugin which is non-GUI based loads the icons perfectly fine [note: this was made via a tutorial by @UseCode_Tap however the GUI-based plugin was from learning from open-source plugin which was also GUI-based]

image

Here is the code to the plugins

GUI-based plugin:

local toolbar = plugin:CreateToolbar("Roblox Fast Donation Button Creation by GamersInternational [" .. script.Parent.Version.Value .. "]")

local ToolbarButton = toolbar:CreateButton ("Open Menu", "Opens menu that allows you to add a donation button quickly", "rbxassetid://6417996232")

local Plugin = plugin:CreateDockWidgetPluginGui(

"Roblox Fast Donation Button Creation",

DockWidgetPluginGuiInfo.new(

Enum.InitialDockState.Float,

false,

false,

155, -- Width I think
195, -- Height I think
190,
250

)

)

Plugin.Title = "Roblox Fast Donation Button Creation"

Plugin.Name = "Roblox Fast Donation Button Creation"

local MaxSize = 12
local MinSize = 6
local ThicknessSize = 0
local IsBorder = false
local AutoAdjustZIndex = true
local GlobalZindex = true
ToolbarButton.Click:Connect(function()
Plugin.Enabled = not Plugin.Enabled

end)

local BaseGui = script.Parent.GUI
BaseGui.Parent = Plugin

Non-GUI based plugin:

local toolbar = plugin:CreateToolbar("Disable CoreGUI Functions v1.05 by GamersInternational")

local disablechatbutton = toolbar:CreateButton("Disable Chat", "This button inserts a LocalScript that disables chat.", "rbxassetid://4458901886")
local disablehealthbarbutton = toolbar:CreateButton("Disable Health Bar", "This button inserts a LocalScript that disables the health bar popping up next to the menu button when you take damage in a game.", "rbxassetid://4458901886")
local disablebackpackbutton = toolbar:CreateButton("Disable Backpack", "This button inserts a LocalScript that disables the backpack function in game. When disabling, any tools that go into the backpack will not work unless you have an alternative backpack.", "rbxassetid://4458901886")
local disableplayerlistbutton = toolbar:CreateButton("Disable Leaderboard/PlayerList", "This button inserts a LocalScript that disables the Roblox leaderboard/playerlist.", "rbxassetid://4458901886")
local disableemotesbutton = toolbar:CreateButton("Disable Emotes", "This button inserts a LocalScript that disables the emotes GUI. Players will still be able to use emotes if they type them into the Roblox chat.", "rbxassetid://4458901886")
local disableresetbutton = toolbar:CreateButton("Disable Reset Character", "This button inserts a LocalScript into StarterGUI that disables the reset character button in the Roblox menu.", "rbxassetid://4458901886")
local disableshiftlockbutton = toolbar:CreateButton("Disable Shift Lock Switch", "This button inserts a Script into Workspace that disables the shift lock switch toggle in the Roblox menu.", "rbxassetid://4458901886")
local disableallbutton = toolbar:CreateButton("Disable All CoreGUI Functions","This button inserts a LocalScript that disables every CoreGUI function listed in the other buttons.","rbxassetid://4458901886")

disablechatbutton.Click:Connect (function()
	if game.StarterPlayer.StarterPlayerScripts:FindFirstChild("DisableChat") then
		return
	else
		local newdisablechatscript = Instance.new("LocalScript")
		newdisablechatscript.Source = "local StarterGui = game:GetService('StarterGui') \ngame.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)"
		newdisablechatscript.Parent = game.StarterPlayer.StarterPlayerScripts
		newdisablechatscript.Name = "DisableChat"
	end
end)

disablehealthbarbutton.Click:Connect (function()
	if game.StarterPlayer.StarterPlayerScripts:FindFirstChild("DisableHealthBar") then
		return
	else
		local newdisablehealthscript = Instance.new("LocalScript")
		newdisablehealthscript.Source = "local StarterGui = game:GetService('StarterGui') \ngame.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)"
		newdisablehealthscript.Parent = game.StarterPlayer.StarterPlayerScripts
		newdisablehealthscript.Name = "DisableHealthBar"
	end
end)

disablebackpackbutton.Click:Connect (function()
	if game.StarterPlayer.StarterPlayerScripts:FindFirstChild("DisableBackpack") then
		return
	else
		local newdisablebackpackscript = Instance.new("LocalScript")
		newdisablebackpackscript.Source = "local StarterGui = game:GetService('StarterGui') \ngame.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)"
		newdisablebackpackscript.Parent = game.StarterPlayer.StarterPlayerScripts
		newdisablebackpackscript.Name = "DisableBackpack"
	end
end)

disableplayerlistbutton.Click:Connect (function()
	if game.StarterPlayer.StarterPlayerScripts:FindFirstChild("DisablePlayerlist") then
		return
	else
		local newdisableplayerlistscript = Instance.new("LocalScript")
		newdisableplayerlistscript.Source = "local StarterGui = game:GetService('StarterGui') \ngame.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)"
		newdisableplayerlistscript.Parent = game.StarterPlayer.StarterPlayerScripts
		newdisableplayerlistscript.Name = "DisablePlayerlist"
	end
end)

disableemotesbutton.Click:Connect (function()
	if game.StarterPlayer.StarterPlayerScripts:FindFirstChild("DisableEmotes") then
		return
	else
	local newdisableemotesscript = Instance.new("LocalScript")
	newdisableemotesscript.Source = "local StarterGui = game:GetService('StarterGui') \ngame.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.EmotesMenu, false)"
	newdisableemotesscript.Parent = game.StarterPlayer.StarterPlayerScripts
	newdisableemotesscript.Name = "DisableEmotes"
	end
end)

disableallbutton.Click:Connect (function()
local newdisableallscript = Instance.new("LocalScript")
	newdisableallscript.Source = "-- Try my new plugin, Roblox Fast Donation Button Creation at https://www.roblox.com/catalog/6016161703/Roblox-Fast-Donation-Button-Creation \n\nlocal StarterGui = game:GetService('StarterGui') \ngame.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)"
newdisableallscript.Parent = game.StarterPlayer.StarterPlayerScripts
	newdisableallscript.Name = "DisableAllCoreGUIFunctions"
	local newdisableresetscript = Instance.new("LocalScript")
	local folder = Instance.new('Folder')
	folder.Parent = game.StarterGui
	folder.Name = 'DisableCoreGUIFunctions'
	newdisableresetscript.Source = "local StarterGui = game:GetService('StarterGui') StarterGui:SetCore('ResetButtonCallback',false)"
	newdisableresetscript.Parent = folder
	newdisableresetscript.Name = "DisableResetCharacter"
	local newdisableshiftlockscript = Instance.new("Script")
	local wfolder = Instance.new('Folder')
	wfolder.Parent = game.Workspace
	wfolder.Name = 'DisableCoreGUIFunctions'
	newdisableshiftlockscript.Source = "game.StarterPlayer.EnableMouseLockOption = false"
	newdisableshiftlockscript.Parent = wfolder
	newdisableshiftlockscript.Name = "DisableShiftLockSwitch"
end)

disableresetbutton.Click:Connect (function()
	if game.StarterGui.DisableCoreGUIFunctions:FindFirstChild("DisableResetCharacter") then
		return
	else
		local newdisableresetscript = Instance.new("LocalScript")
		local folder = Instance.new('Folder')
		folder.Parent = game.StarterGui
		folder.Name = 'DisableCoreGUIFunctions'
		newdisableresetscript.Source = "local StarterGui = game:GetService('StarterGui') \nStarterGui:SetCore('ResetButtonCallback',false)"
		newdisableresetscript.Parent = folder
		newdisableresetscript.Name = "DisableResetCharacter"
	end
end)

disableshiftlockbutton.Click:Connect (function()
	if workspace.DisableCoreGUIFunctions:FindFirstChild("DisableShiftLockSwitch") then
		return
	else
		local newdisableshiftlockscript = Instance.new("Script")
		local folder = Instance.new('Folder')
		folder.Parent = game.Workspace
		folder.Name = 'DisableCoreGUIFunctions'
		newdisableshiftlockscript.Source = "game.StarterPlayer.EnableMouseLockOption = false"
		newdisableshiftlockscript.Parent = folder
		newdisableshiftlockscript.Name = "DisableShiftLockSwitch"
	end
end)

Thanks in advance for your help.

2 Likes

I believe this is a network or studio issue.

Try these if they work:

  • Reinstalling studio
  • Clearing cache Roblox/DNS Cache
  • Disconnect yourself from the internet

This has basically happened since I’ve created the plugin.

If it helps, see if it works on your PC [insert into %localappdata%\Roblox\Plugins, plugin is open-source anyways]: Roblox Fast Donation Button Creation.rbxmx (59.0 KB)

Also my other new GUI-based plugin which is currently private is experiencing the same issues

1 Like

@Wh7sk this is one of my other plugins and it has the same issue

image

Code for that as well:

local toolbar = plugin:CreateToolbar("ToolkitX Beta")

local ToolbarButton = toolbar:CreateButton ("Tools Store", "A curated store for models with an insert model from ID feature", 'rbxassetid://6288754203')

local insertmodel = plugin:CreateDockWidgetPluginGui(

"Tools Store",

DockWidgetPluginGuiInfo.new(

Enum.InitialDockState.Float,

false,

false,

750, -- Default width

380, -- Default height

350, -- Min width

200

)

)

insertmodel.Title = "Tools Store"

insertmodel.Name = "Tools Store"

local MaxSize = 12

local MinSize = 6

local ThicknessSize = 0

local IsBorder = false

local AutoAdjustZIndex = true

local GlobalZindex = true

ToolbarButton.Click:Connect(function()

insertmodel.Enabled = not insertmodel.Enabled

end)

local BaseGui = script.Parent.IM

BaseGui.Parent = insertmodel

Would like to add on more information, a freshly downloaded copy [obviously isn’t on the latest version as I haven’t pushed out updates] doesn’t work either. Not sure if I should have the icon 16x16 though I would think it shouldn’t make a difference.

image

You’re using the wrong asset id. Use the ImageId instead, which you can get through the btrRoblox extention, or by pasting the decal and taking the id that studio generates for you.

In your case, the id is 6417996209. Try using that and see if it works.

2 Likes

Thank you for your help :smiley:

image

1 Like