How set image of imagelabel if you only know id

just go to the properties of the image lable and paste the id on the “Image” property

Either paste the id in studio or use Content.fromUri and set the image property with the returned content

Paste the image id in the Image Property of your image label. Or use this function if you need it in a script ig:

function ReturnImageLink(ID : number) : string
	return "rbxassetid://"..ID
end

you close i need to use number in script to get image of place but all variants give me white screen

1 Like

Check if your ID is valid, and is public(if not owned by you).

If they are, something might be covering your UI, or you have done something wrong, may I see your script?

there he is type is local script:

local random = game.Workspace.NUMBER
local remote = game.ReplicatedStorage:WaitForChild("GetSignal")

remote.OnClientEvent:Connect(function()
	wait(0.1)
	script.Parent.Image = "rbxassetid://"..tostring(random)
end)

1 Like

Act nvm

Change it to this:

script.Parent.Image = "rbxassetid://"..tostring(random.Value)

And use task.wait(), its more optimised than wait().

Also check if your value is an actual ID and is not nil and your firing the event properly.

your variable should not be called random…
it will lead to issues

still this problem it not helped

I think what you’re asking for is a way to convert a decal id to an asset/image id. There’re multiple ways you can do this, including:

  1. Use the thumbnail endpoint
    Setting ImageLabel Image not working - #13 by NyrionDev
  2. Use InsertService
    It's Impossible to Get an Image ID From a Decal ID - #10 by Subcritical_alt
  3. Use Bruteforcing
    One popular legacy method was to decrease the decal id by one until an image loads(I think MM2 does this for one of their graffiti gears). However this is unreliable because you may need to look over many ids, and you also have to make many API calls to MarketplaceService. So it’s better if you use the solutions above that are more straightforward.

change the name of the variable, random is not really a name you should use tbh.

1 Like

its not helping if i change name of variable, what i want to see why my script not working and how i can achieve setting image to place id image

place id image? Im not sure what you mean by place id image. Is your variable nil? Im not sure why else your function wouldn’t work. Might also be that the script can’t access the variable.

place id image it is image of place who has this id and no variable not nil

So you want to set the image Id to one from another place?

Also what is your Value set to? Can I have a screenshot?

set image from other place to my place

Again, what is your value set to?

bro just give method how can achieve this

lets not be demanding, I’m trying to help you, mk?

If the value of your ValueInstance is nil, of course its going to show a blank image, can you tell me the value please?

Im pretty sure pirating images from other developers is not allowed? Well even if you got a solution, you don’t have permission to use said asset.

1 Like

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