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

I need help plz can someone help me?

Asked by 10 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

it says Processreceipt isnt apart of marketservice

0

1 answer

Log in to vote
-4
Answered by 10 years ago

"Scripting Helpers is not a request site! Your post will be removed if it does not comply with our rules. Please see this blog post for more information." Please answer some questions :)

0
This isn't a request. He actually has a script and is asking for help. Understand the rules... Shawnyg 4330 — 10y
0
I was about to upvote until I noticed he did include a script. fireboltofdeath 635 — 10y
Ad

Answer this question