Hi guys, i've made a shop GUI for my game and I've put in one of the gamepasses available for purchase, however when the button is pressed it comes up with a random shirt not for sale anymore. My guess is that ROBLOX has changed the way that gamepasses are identified and that I am not aware of this change.
local player = game.Players.LocalPlayer
local marketplaceService = game:GetService("MarketplaceService")
script.Parent.MouseButton1Click:connect(function()
marketplaceService:PromptPurchase(player, 6034291)
-- 6034291 is the ID that appears in the gamepass URL.
end)
Any help is appreciated!

3 comments
hmmm, i dont think so, are you sure that your id is right?
can confirm, this is the link: https://www.roblox.com/game-pass/6034291/Gravity-Coil
ok, 1 question, is this the shirt? https://www.roblox.com/catalog/6034291/im-gonna-fall