Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i load gamepass image in a image label and where do i put it?

How do i load gamepass image in a image label and where do i put it? I did anything but it doesnt work

1 comment

0

mk

2 answers

✓ Accepted answer

You can use MarketplaceService's GetProductInfo() to get the IconImageAssetId of the specified gamepass:

local mps = game:GetService("MarketplaceService")
local img --imagelabel location
imagelabel.Image = mps:GetProductInfo(7944640,Enum.InfoType.GamePass).IconImageAssetId

Its two arguments are the ID and its InfoType (Enum).

1 comment

0

thx it actually worked

This discussion is preserved as it was. New answers, comments, and votes are closed.