Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to let ImageLabel load a rbxcdn link?

Asked by 6 years ago
Edited 6 years ago

I have this link : and this is a Link to one of my gamepasses image

And I want this Image to be displayed in an ImageLabel Instance so someone can buy it in my in-game shop

But there are no Errors in the Console

But it just gives me a blank field. What did I do wrong? Or how can I fix it?

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

ROBLOX does not accept direct links to its CDN. Instead, use the asset image endpoint:

https://www.roblox.com/asset-thumbnail/image?assetId=1&width=420&height=420&format=png

Replacing the '1' after 'assetId' with your model/gamepass/shirt/pants/etc's ID.

0
Okay Thanks :D RicheeNektar 78 — 6y
0
But the problem is I don't get the ImageId :| This is my request: https://www.rprxy.xyz/Games/GetGamePassesPaged?placeId=431519754&startIndex=1&maxRows=30 RicheeNektar 78 — 6y
0
K thx it worked :) RicheeNektar 78 — 6y
Ad

Answer this question