Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I need help plz can someone help me?

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

1 comment

1 answer

"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 :)

2 comments

0

This isn't a request. He actually has a script and is asking for help. Understand the rules...

0

I was about to upvote until I noticed he did include a script.

This discussion is preserved as it was. New answers, comments, and votes are closed.