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

How to track any game's thumbnail picture in studio?

Asked by
imKirda 4491 Moderation Voter Community Moderator
4 years ago

I wanted to make a list of games in a ROBLOX game and i want to have portals there, what i want to do is to have every portal leading to another game have thumbnail of that game, but i want it to get the game's thumbnail id or something like that so if i put game's id (no idea how it works i just think it works like this), the imageLabel will have picture of a game thumbnail id, of which i wrote. I do not know if i wrote it so everyone can understand it but here is an example: Super Tycoon game id: 12345678 script.Parent.Image = SuperTycoon's thumbnail.

I have seen it in Roblox game called 'Game tracker' so it is possible. Thanks, kirda.

1 answer

Log in to vote
0
Answered by 4 years ago

Script: This link is not depreciated.

local placeId = 000000 --[your placeId here]
script.Parent.Image = "https://www.roblox.com/asset-thumbnail/image?assetId="..placeId.."&width=768&height=432&format=png" -- this will get the image in 768 pixels width an 432 in hight you can change them if needed, there right after the placeId.
Ad

Answer this question