Image never loads on surfaceGUI

Hey,

I’ve been working on a rate my avatar game and I can’t figure out why my imagelabel never gets a loaded image.

I’ve tried everything from loops, to contentprovider:preloadasync(index), anything. It just never loads.

	elseif Argument == "ChangeImage" then
		Booth.Display.SurfaceGui.ImageLabel.Image = "http://www.roblox.com/asset/?id="..Argument2
Frame.ChangeImage.MouseButton1Click:Connect(function()
	if Frame.ImageID.Text ~= "" then
		if not tonumber(Frame.ImageID.Text) then return end
		RemoteEvent:FireServer("ChangeImage", tonumber(Frame.ImageID.Text))
	end
end)

Anybody know?

Try using this url instead:

"rbxassetid://"..Argument2
3 Likes

That’s the image’s decal ID (catalog ID), not its asset ID.
You need to use ‘1560823444’ instead.

2 Likes

Are you loading a Decal Id or a Image Id ( since Decal Ids don’t work with ImageLabels )?

1 Like