So I was working on this GamePassPrompt and for some reason it doesn’t work?
The script:
local MarketPlaceService = game:GetService(“GamePassService”)
local gamePassID = 19188539
local function promptPurchase()
local player = game.Players.LocalPlayer
local hasPass = false
local success, message = pcall(function()
hasPass = MarketPlaceService:UserOwnsGamePassAsync(player.UserID, gamePassID)
end)
if hasPass == true then
print("Player has pass")
else
MarketPlaceService:PromptGamePassPurchase(player, gamePassID)
end
did you made the gamepass?
if it is this script will print Player Has Pass
because you made the gamepass , and you have it
can you test in the game and send a screenshot of your output?