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

How do I make this work? ProcessReceipt not working not giving errors

Asked by 7 years ago
local marketplaceService = game:GetService("MarketplaceService")

marketplaceService.ProcessReceipt = function(purchaseInfo)
    local plr = game:GetService("Players"):GetPlayerByUserId(purchaseInfo.PlayerId)
    if purchaseInfo.ProductID == 122550429 then
        game.Workspace.FrenzySpawns.FrenzyValue.Value = 5
        game.StarterGui.ScreenGui.FrenzyNotifier.Visible = true
        game.StarterGui.ScreenGui.FrenzyNotifier.Announcement.Text = "test"

    end
    return Enum.ProductPurchaseDecision.PurchaseGranted
end
0
describe more your problem, i cant uderstand what is the problem darkzerobits 92 — 7y

Answer this question