Problem with game passes; not available for purchase?
Asked by
5 years ago Edited 5 years ago
I am making a game for one of my clients. I finished the game and everything and gave it to them. They came back to me and said they were having problems with the game pass. They set it all up and it is under the store when I go to look at the game. I got the game pass somehow and when I go to the store, it says buy. When the client goes to the store it says "Owned", but they don't get any of the benefits coming with the game pass. When they click to buy it from in-game it says something about it not being available for purchase. When I click it, it says I already own the pass. No erorrs. Here is the code. Thx in advance for any help!
LocalScript in the game pass button -
1 | local id = workspace [ "VIP ID" ] .Value |
2 | local MPS = game:GetService( 'MarketplaceService' ) |
4 | script.Parent.MouseButton 1 Click:Connect( function () |
5 | MPS:PromptGamePassPurchase(game.Players.LocalPlayer, id) |
Code for server script in ServerScriptService
01 | local MPS = game:GetService( 'MarketplaceService' ) |
03 | MPS.ProcessReceipt = function (receiptInfo) |
04 | local plr = game.Players:FindPlayerByUserId(receiptInfo.PlayerId) |
06 | return Enum.ProductPurchaseDecision.NotProcessedYet |
08 | return Enum.ProductPurchaseDecision.PurchaseGranted |