Getting game icon

What i want to achieve, is i want to get the gameIcon and not the gameThumbnail. But i don’t know how i would get the gameIcon, i know have this:

local gameID = script.gameID.Value

local TeleportService = game:GetService("TeleportService")
local MarketplaceService = game:GetService("MarketplaceService")

local gameTitle = script.Parent.gameTitle
local gameImage = script.Parent.gameImage
local gameId = script.Parent.gameId
local joinGame = script.Parent.joinGame

gameTitle.Text = MarketplaceService:GetProductInfo(gameID).Name
gameId.Text = gameID
--gameImage.Image = "rbxthumb://type=Asset&id="..gameID.."&w=150&h=150"

gameImage.Image = "http://www.roblox.com/Icons/Asset.ashx?Width=768&Height=432&AssetID="..gameID

joinGame.MouseButton1Click:Connect(function()
	TeleportService:Teleport(gameID, game.Players.LocalPlayer)
end)
1 Like

:GetProductInfo() returns the icon of the game as well.

local gameInfo = MarketplaceService:GetProductInfo(gameID)
gameTitle.Text = gameInfo .Name
gameImage.Image = "rbxassetid://" .. gameInfo.IconImageAssetId
2 Likes

Thanks for your help, that was really stupid of me!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.