I want to make a fully working webhook that notifies me when a product has been purchased (In this case, a skip stage product.) I am also trying to teleport the player to the next checkpoint at the same time in the same script.
The issue is that the webhook AND the skip stage function is not working. I have tried to put the webhook in a different script, but I put a test webhook in there to make sure it works. As what happened in the main script, the same thing happened in this script. NONE of the scripts were working for some reason. If you have any solutions for me, I would be very grateful. (Keep in mind: I am not a good scripter. I’m basically playing in a sandbox with this script.)
UPDATE: I have deleted the webhook I accidentally showed in the previous image. As I said, I am not really new to developing, but I am extremely bad.
First thing before anything else, please reupload a screenshot without your webhook exposed.
Someone could send a DELETE request and the webhook will delete itself.
Do you have other scripts also doing ProcessRecipt = function?
Only a single function can be assigned to it so any other scripts doing it will override the existing one.
I have no other scripts using the function. I just ran a test with the print command to see where it messed up, and I saw that the following line is not running at all.
I just used “print(2)”, but that print command that you put still didn’t work.
Update: Please do not say anything else, I think I’m getting somewhere
Would I need to put anything in the content value? I also do not understand why I have to put in the content value because I have created other fully functional scripts involving webhooks without the content value.