Hi!
My Game Passes work and are possible to be bought, but when the 'are you sure' window pops up, no thumbnail is being shown. I have looked on the web for this problem, but no luck so far. I saw that it is/was a known bug, but I'm not sure whether it's already fixed or not.
The promptPurchase script:
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local gamePassID = 4713616 -- Change this to your game pass ID
-- Function to prompt purchase of the game pass
local function promptPurchase()
local player = Players.LocalPlayer
local hasPass = false
local success, message = pcall(function()
hasPass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, gamePassID)
end)
if not success then
warn("Error while checking if player has pass: " .. tostring(message))
return
end
if hasPass == true then
-- Player already owns the game pass; tell them somehow
else
-- Player does NOT own the game pass; prompt them to purchase
MarketplaceService:PromptGamePassPurchase(player, gamePassID)
end
end
script.Parent.MouseButton1Click:connect(function()
local player = Players.LocalPlayer
game:GetService("MarketplaceService"):PromptGamePassPurchase(player, gamePassID)
end)
Thanks!

3 comments
I have the same problem ;( I found something that might answer a few questions https://devforum.roblox.com/t/gamepass-purchase-prompt-window-shows-wrong-thumbnail/118885
Yeah I saw that one as well! A Roblox staff member commented on that post, saying they were looking into it. But that was 2 months ago :S
They are making changes to the apis https://devforum.roblox.com/t/changes-to-badge-apis/140319