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

I am trying to make a script which awards a badge when you buy a dev product, see anything wrong?

Asked by 4 years ago
Edited 4 years ago

There are no errors that leaves me wondering why it doesn't award the badge. I requested help before and changed it accordingly, but for some reason, it still won't award the badge. It would help a lot if you see an error. Thanks.

01local badgeservice = game:GetService("BadgeService")
02 
03local id = 2124571648 --- Put Badge ID here
04 
05local MarketplaceService = game:GetService("MarketplaceService")
06 
07local players = game:GetService("Players")
08 
09local ProductID = 983895018 --- Product ID Here
10 
11local function processReceipt(receiptInfo)
12 
13    local player = players:GetPlayerByUserId(receiptInfo.PlayerId)
14    if not player then
15 
View all 31 lines...
0
Do you have third party sales enabled that might be why it is not awarding the badges. cocajola3 6 — 4y

Answer this question