Marketplace Service Problem

So I have this line
image

It connects it to this function
image
Which just checks if there are player and gives them reward

But for some reason, sometimes it doesn’t connects to a function

-- This doesn't connects it to a function
MarketplaceService.ProcessReceipt = ProcessReceipt

There are print at start of function and it doesn’t even prints when this happens, means it wasn’t connected

There are also a warn right after this connection that says that script has been loaded, and it does prints in console but function still doesn’t works, Same will be if you remove it

It happens sometimes but still often
Please help

If you couldn’t understand something or need more info then ask and I’ll give more info

1 Like

And are you returning a Enum.ProductPurchaseDecision? Also, you can only set this once on one server script

1 Like

Yes I do, I return that purchase granted if success and uh other thing if not

And its probably cuz of this

you can only set this once on one server script

Since game I’m working in already have script that have this connected (I am helping to set up my system in this game for payment and they had developer product thing setted up)

So yes its probably cuz of there being 2
Thanks for helping!

(I marked this as solution without testing and right after I sent message because function is working properly and there’s no errors in it, so this had to be the issue)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.