This is a developer product that gives 100 subscribers. When I tested it, it did not work. I have looked over my script and have not been able to determine why. Can you guys figure this out?

local MarketplaceService = game:GetService('MarketplaceService')
local devproductid = 130515700

MarketplaceService.ProcessReceipt = function(receiptInfo)
	local plr = game:GetService("Players"):GetPlayerByUserId(receiptInfo.PlayerId)
			if receiptInfo.ProductId == devproductid then
				plr.leaderstats.Subscribers.Value = (plr.leaderstats.Subscribers.Value + 100)
			end
	return Enum.ProductPurchaseDecision.PurchaseGranted
end

If you want to know, it is a regular script in the server script service.

1 comment

0

Is it ever being called? "Does not work" means what? Either it's never being called, or it's failing inside the function.