Issues with changing imagelabel image

I’ve been trying to change a image labels image with a script through sending the id in a remote event.

I’ve tried http://www.roblox.com/asset/?id= and just setting the image id to to the id itself without http://www.roblox.com/asset/?id=.

I do have a datastore script, which successfully changes the image with a string of “http://www.roblox.com/asset/?id=id”.

obj[Propertie] is the gui objects image, video, etc
String is the id of the image the player is trying to get

obj[Propertie] = "http://www.roblox.com/asset/?id="..String

Inside the imagelabel the image does say “http://www.roblox.com/asset/?id=id”, but the image still does not show

Try this link perhaps?

"rbxthumb://type=Asset&id="..String.."&w=150&h=150"

Content Urls

4 Likes

Say the ID the player sent was something like 12345.
You would only have to do rbxassetid://
No complicated URLs or anything. EmbatTheHybrid’s solution also works too.

My solution doesn’t turn it into a image. Ignore mine lol.

Issue is that your method wont convert the decal id into an image id, which is probably what was happening to @OP, the url I used does that for you, so even if you give a decal id, it’ll still turn it into an Image ID

1 Like

Ohhhhh… Forgot that studio does that for you. Whoops :sweat_smile:

1 Like

Haha it’s okay! We all make mistakes with our answers sometimes, but that’s okay! It’s all part of learning!

3 Likes