What do you want to achieve?
Get a game’s Icon to display it on a decal.
What is the issue?
I can’t seem to find any method for getting a games Icon, though from using this I am able to get the imageUrl which looks like this:
What solutions have you tried so far?
I have tried using v2/games/media linked here when I get the imageId from this I get a textureId looking something like “0000000” though the only problem with this is that I get the thumbnails and not the game Icon.
Does anyone have a better way of doing this or an idea how to get the iconId instead of getting the URL which cannot be used with decals.
The code basically makes a decal and puts it on a surface to a part.
The code I’m working with is here:
local boardLocation = game:GetService("Workspace").Board -- Properties local universalId = 2464573238 -- The Game's universal id -- Variables local gameIcon = boardLocation.GameIcon local gameTitle = boardLocation.GameTitle local gameDescription = boardLocation.GameDescription -- Proxy local HttpService = game:GetService("HttpService") local ProxyService = require(game.ServerScriptService.ProxyService) local Proxy = ProxyService:New('', '') local gameProxy = Proxy:Get('https://thumbnails.roblox.com/v1/games/icons?universeIds='..universalId..'&size=512x512&format=Png&isCircular=false').body local gameProxyImageId = HttpService:JSONDecode(gameProxy).data.imageUrl local iconId = "rbxassetid://"..gameProxyImageId -- OnStart (Creating decals and text) local function onStart() -- local iconDecal = Instance.new("Decal") iconDecal.Name = "ImageIcon" iconDecal.Parent = gameIcon iconDecal.Face = Enum.NormalId.Back iconDecal.Texture = iconId print(iconDecal.Texture) -- end onStart()