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 6 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 — 6y

Answer this question