Someone helped me with this before, but I had a hard time changing it. If you do see a problem, please tell me which lines to change. I believe the problem is on lines 13-14. Thanks!
local badgeservice = game:GetService("BadgeService") local id = 2124574372 --- Put Badge ID here local MarketplaceService = game:GetService("MarketplaceService") local players = game:GetService("Players") local ProductID = 98389501 --- Product ID Here local function processReceipt(receiptInfo) local player = players:GetPlayerByUserId(receiptInfo.PlayerId) if not player then return Enum.ProductPurchaseDecision.NotProcessedYet end badgeservice:AwardBadge(plr. UserId,id) end return Enum.ProductPurchaseDecision.PurchaseGranted end ---e MarketplaceService.ProcessReceipt = processReceipt
I helped you before, and you didnt remove the excessive end
of the previous if statement you put there, next time also include the error and which line errors
The Dev Wiki says the arguments for the function AwardBadge is (UserId,badgeId) but you have (Player,UserId,badgeId) try doing > badgeservice:AwardBadge(PlayerId,id)