What function do i need to call?

Hello!

Just wondering, what function do i need to call to display a message like this? And is there a way to display a message with 1 script instead of calling the function every single time?

Hello, Do you mean the purchase prompt or something else. I am a little confused

Depends whether it’s a gamepass, developer product, or other.

Say like in psx when you buy a exclusive egg. it says “Thanks for your purchase”. How would i make that basically

You’re gonna need the MarketplaceService. For a product, use MarketplaceService:PromptProductPurchase(player, productID). For a gamepass, you’re gonna need MarketplaceService:PromptGamePassPurchase(player, gamepassID)

1 Like

Firstly, you’re gonna need a receiver server-side to process rewards and give them. Then, you can use PromptProductPurchaseFinished or PromptGamePassPurchaseFinished, or whatever you need. These give three parameters:

  1. The player (Player Object)
  2. The item ID (Number)
  3. Whether they bought it or not (Boolean)

Yeah i know thats prompting the gamepass and that. but thats not what i’m tryna achieve

I need it to show a gui when you purchase either a dev product or gamepass

he already said the answer

  1. Whether they bought it or not (Boolean)

check if Boolean is true and then pop up the gui by modifying Transparency or simply using Tween through the code, then display the text yourself on the client

2 Likes

Use PromptProductPurchaseFinished and PromptGamepassPurchaseFinished

2 Likes

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