How do i load gamepass image in a image label and where do i put it? I did anything but it doesnt work
✓ ANSWER ACCEPTED
How do i load gamepass image in a image label and where do i put it?
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
print(
1 comment
0
Not a valid answer.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
mk