How would I give a player something when they purchase a developer product?

I have been trying to do this for a while and I have gotten no where

Here is my code:

Any help or tips are greatly appreciated!!

Nothing prints when I buy it, and I put the print function, which means that I did the receipt wrong, any ideas on how to fix it?

1 Like

Try taking the if receipt info line out of the if statement then see if it works

1 Like

Ok so, I’m not really sure on how marketplace service works because I haven’t decided to mess with that, but what do you mean if player? From quickly skimming over that isn’t the player variable a user id? Sorry if this didn’t help.

The function

:GetPlayerFromUserId()

Finds the player with that user id. Then it checks if it found a player, which it should find the player unless the player left. And I did not leave after buying so I don’t think that’s the problem. Thanks anyway.