If you see that when you use MarketPlaceService.ProcessReceipt not working, use this alternative:
local MarketplaceService = game:GetService('MarketplaceService')
MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(Player, PassId, IsPurchased)
if IsPurchased then
if PassId == 20929293 then -- Change "20929293" with the actual gamepass id that you need
-- SCRIPT TO GENERATE POINTS OR ANOTHER THING HERE --
end
end
end)
the IsPurchased thingy after :Connect(function() says if the player purchased is True the script for the points will fire, i learned it from another script when i was new in roblox studio
and seeing your image, processreceipt only works for products, not for gamepass, and yeah, i “confused” ( i don’t know the correct word ) it with “Comunity tutorials” and i didn’t know in which category i should put this
This is a terrible idea. Do not do this. ProcessReceipt is designed to rerun until you confirm the user has received what they purchased. If you use the method from the OP, there will be cases where users never receive what they purchased.
If ProcessReceipt does not work for you then you are doing something wrong.