Help with displaying game icon on ImageLabel

Hey there! So I need to display a game’s icon on an image label, I have searched online, found many results, but none of them seemed to be working. So now I’m stuck. If anyone knows how to get the Game ICON (not thumbnail) and display it on an image label, please let me know. I have the placeId, tell me if I need anything more.

1 Like

Anybody? Hopefully. Anything will help. Thanks!

Bumping this topic again. Maybe more of you are online now.

local PID = game.PlaceID
local Service = game:GetService("MarketplaceService")

local Info = Service:GetProductInfo(PID)
local AssetID = Info.IconImageAssetId

(yourimgdirectory).Texture = "rbxassetid://" .. AssetID
1 Like

I tried that, however the resulting asset is was always 0, I’ll try it again in about 30 mins or when I can

Are you trying to Copy-Write?

1 Like
ImageLabel.Image = ("rbxthumb://type=GameIcon&id=%d&w=%d&h=%d"):format(game.GameId, 256, 256)

You can change “256” to any size listed in the ThumbnailSize enum.

3 Likes

No, I am making Roblox, but on Roblox. I already made it so it displays your friends and their status (online, in-game, in-studio, and offline). Since it’s impossible to get a players recently played games (to make the continue playing section) i am making a join friends section, where I will display all the games your friends are in, with their name, icon, player count and the friend(s) that are in it, then make it so you can directly join that game from inside my Roblox game.

1 Like

Thanks, it worked. I can now continue on my pointless journey of

1 Like