Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can someone check the script it says the last line has the error?

Asked by 9 years ago

local productId = 20156861

game.Players.PlayerAdded:connect(function(player)

game:GetService("MarketplaceService"):PromptProductPurchase(player, productId) end)

local MD = game:GetService("MarketplaceService")

MD.Processreceipt = function(receiptInfo) for i, player in ipairs(game.Players:getChildren())do if player.userId == receiptInfo.PlayerId then if receiptInfo.productId == productId then player.Character.Humanoid.Health = 100 end end end local playerProductKey = "Player_" .. receiptInfo.PlayerId .. "Purchased" .. receiptInfo.PurchaseId PurchaseHistory.IncrementAsyns(playerProductKey, 1) return known.ProductPurchaseDecision.PurchaseGranted end

0
Also it says Process reciept isnt a member of MarketplaceService bublehead2 0 — 9y

Answer this question