Image not popping up on studio plugin widget

Hello devs i was making a little plugin with the widget and it has an image in the middle but for some reason the widget is missing the image in the center its an empty widget

local bar = plugin:CreateToolbar("Doge plugin")

local button1 = bar:CreateButton(
	"Doge Buddy",
	"Doge watches you in Roblox Studio!!!",
	"http://www.roblox.com/asset/?id=107693287486306"
)

local info = DockWidgetPluginGuiInfo.new(
	Enum.InitialDockState.Float,
	true,
	true,
	200,
	200,
	150,
	150
)

local widget1 = plugin:CreateDockWidgetPluginGui("DogeBuddyWindow", info)
widget1.Title = "Doge Buddy"

local Image = Instance.new("ImageLabel")
Image.Name = "DogeImage"
Image.Parent = widget1
Image.BackgroundTransparency = 1
Image.Size = UDim2.new(0, 150, 0, 150) -- Image size
Image.Position = UDim2.new(0.5, 0, 0.5, 0) -- Center position
Image.AnchorPoint = Vector2.new(0.5, 0.5) -- Center anchor
Image.Image = "rbxassetid://139545812091545"
Image.ImageTransparency = 0
Image.ScaleType = Enum.ScaleType.Fit
Image.ZIndex = 1

button1.Click:Connect(function()
	widget1.Enabled = not widget1.Enabled
end)

image

2 Likes

Ensure "rbxassetid://139545812091545" is valid

Edit:
If you got the AssetId from creations page make sure you clicked this one: (Copy Asset ID)
image

1 Like

ive double checked ive even tried using both rbxassetid and http://www.roblox.com/asset/?id

1 Like

hm, maybe try reuploading your image?

still didnt work

do you spot any things in the script maybe the image renders but its just not in the center so we cant see it idk :frowning:

Ill take a look, in the mean time try make a ScreenGui with a ImageLabel inside of it, see if it renders in Studio in general

If it doesn’t then its most likely a issue with the image.

Update:
I don’t see anything wrong with your code

nope it seems to work

image

I see, thinking about it what if you try publish the plugin to roblox instead and try run the plugin via roblox?

Since at the moment I think its running locally on your machine so maybe it cant get the image.

Just an assumption

Furthermore, your image could still be pending moderation.

ROBLOX Allows the client to see the Image instantly but for others it wont be visible.

well i just did and its blank is the image in the center?

I’d assume your image is still under moderation in that case, best thing to do is wait for a while and if nothing happens then file a bug report possibly.

i tried using a textbutton and a textbox they both worked but images arent working for some weird reason :frowning:

it was a issue with the image how i fixed it i had to put the decal id into a decal then it gave me another id and i used that for the widget

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.