I need to put an image onto a imagelabel from a gamepass. How can I do this?
Current code:
local gamepasses = {1,2,3,4,5,6,7,8} --placeholders, gamepasses will be added soon
local template = script.Parent.Template
local marketplaceService = game:GetService("MarketplaceService")
for i, v in pairs(gamepasses) do
local cloned = template:Clone()
local gpInfo = marketplaceService:GetProductInfo(v, Enum.InfoType.Product)
cloned.ImageLabel.Image = "rbxassetid://"..gpInfo
end