This code does not work how can fix it?
game:GetService(“MarketplaceService”):PromptGamePassPurchaseFinished(function(player,ID,wasPurchased)
print(player.Name … “wasss”… ID…" wasbuy"…tostring(wasPurchased))
end)
This code does not work how can fix it?
game:GetService(“MarketplaceService”):PromptGamePassPurchaseFinished(function(player,ID,wasPurchased)
print(player.Name … “wasss”… ID…" wasbuy"…tostring(wasPurchased))
end)
Are you prompting the purchase before running this code?
Yes I did put the prompting which was
game.Players.PlayerAdded:Connect(function (player)
game:GetService(“MarketplaceService”):PromptGamePassPurchase(player,880)
end)
PromptGamePassPurchaseFinished is an event, so you have to use Connect.

It gave me an
error.
Which error? I assume you still have the colon after game:GetService(“MarketplaceService”), you’ll have to replace that with a dot.