Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Donation Board & Skip Button GUI (ProcessRecipt getting confused?)

Hello, I am currently making a Chart Obby.

I have added a "Skip GUI' to skip the stage

  • it fully works when the donation (Free Model) is deleted or not in the game.
  • Also it works when I disable the script inside it called "AssetLoader"

Now with the Donation Board this is a free model

I need some help doing this. Also, I have a Donate GUI on the screen and I also want it to work for the board. But I am not too sure about that.

But if I can get the "Skip GUI" and the "Donation Board" to work properly that would be amazing!

1 comment

0

Currently there is no errors in the output. The only problem is the ProcessRecipt getting confused with is this for the donation or is this for the Skip Stage

1 answer

ProcessReceipt can only have one callback function, so it won't work if you set multiple callback function.

It can only be done once by one script in the server, so make sure that there is only one script that handles the ProcessReceipt.

There is an example from Roblox, you contain functions for each product in a table, and then when the player makes a purchase check if it is already granted, then run the function for the product in the table.

Make sure you have Enum.ProductPurchaseDecision.PurchaseGranted when the purchase is successfully granted.

2 comments

0

Okay, I have tried reading the article. I have done a few testing and I think I need to add a script or a line of code inside the Donation Board to see if the product that was bought was the donation ID or not. So how exactly would I do this?

0

Oh also yes. I did notice inside the ServerScriptService there is a script for the SkipStage that handles the purchase for the Skip. But I noticed there wasn't one in the ServerScriptService for the Donation Board. Plus the code is sort of hard to understand.

This discussion is preserved as it was. New answers, comments, and votes are closed.