How do I get the id link from an image id?

I am writing this script that lets you type out an image id for it to appear on a gui.
Here is my script:

local button = script.Parent -- the save button
local id = button.Parent.ImageId -- the id the player typed out
local image = button.Parent.ImageDecal -- the decal

button.MouseButton1Click:Connect(function(player)	
	image.Image = "https://www.roblox.com/library/".. id.ContentText
end)

I have tried changing the link to “rbxassetid://” but it didn’t seem to work either.

1 Like

Roblox never added a way to do this conversion ingame and people tend to just use a proxy for this.

You can use rbxthumb instead but you are limited to a max resolution of 420x420
Example: image.Image = “rbxthumb://type=Asset&id=ID&w=420&h=420”

OR

If you know how to make HTTP requests and use a proxy
Make a GET request to https://assetdelivery.roblox.com/v1/asset?id=ID
You should be able to extract the image id from the body

1 Like

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