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 -
local id = workspace["VIP ID"].Value local MPS = game:GetService('MarketplaceService') script.Parent.MouseButton1Click:Connect(function() MPS:PromptGamePassPurchase(game.Players.LocalPlayer, id) end)
Code for server script in ServerScriptService
local MPS = game:GetService('MarketplaceService') MPS.ProcessReceipt = function(receiptInfo) local plr = game.Players:FindPlayerByUserId(receiptInfo.PlayerId) if not plr then return Enum.ProductPurchaseDecision.NotProcessedYet else return Enum.ProductPurchaseDecision.PurchaseGranted end end