Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago

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

0
mk stevenfury91 -17 — 3y

Closed as Not Constructive by JesseSong

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
3
Answered by
sngnn 274 Moderation Voter
3 years ago

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).

0
thx it actually worked stevenfury91 -17 — 3y
Ad
Log in to vote
-3
Answered by 3 years ago

When answering, if your answer does not fully solve the question, it should be written as a comment to the question instead of as an answer.

print(

0
Not a valid answer. JesseSong 3916 — 3y