Webhook Function and Product Purchase not Responding [RE-UPLOAD]

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 skip stage function is working but the webhook isn’t. I have tried to separate the functions of the webhook and the skip stage to different scripts. 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.)

This is a re-uploaded topic because the other topic is not too popular and no one else is replying right now.

I’m assuming your webhook is something like:

local webhook = "www.discord.com/whatever"

correct?

It is a discord webhook, using a proxy server.

Does anything at all show up from the webhook? or is there an error when using PostAsync?

There is nothing coming from the webhook. In the output when I test this there is no error with PostAsync

Could you add a print after the data?

I have just added a print command at the end of the data variable and it has not printed anything.

Does the “3” print properly? Also, does your character move positions?

The character does move positions and the 3 prints properly.

What discord proxy are you using?

I am using lewistehminerz.

WebhookProxy (lewistehminerz.dev)

make sure the beginning of the webhook looks like this:
https://webhook.lewistehminerz.dev/api/
not sure if you forgot the API part

That is the begging of the webhook. Like I said, after the data variable, the script is not running.

A few months ago, I heard someone say that discord will no longer accept roblox webhooks and that you have to use a proxy or something. Don’t know if this is false information though.

1 Like

It’s true, but he is using a proxy.

I am using a proxy in this script.

Ah, alright

char limit aaaaaaa

Actually, I think I see the problem. You are using plr.Name, but ProcessReceipt doesn’t return plr. So, replace all of the plr 's with player, which you defined. (Also remove the plr from the function)

Okay, so after the local variable the printing command worked, but the webhook still isn’t showing up.

Could you try to make the data just

local data = {
	content = player.Name
}

and see if that works?