The character does move positions and the 3 prints properly.
What discord proxy are you using?
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.
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?
Still, nothing is being outputted. I believe it must be an error in the PostAsync but I don’t know how or where it would be. I have also been working on this problem for more than 2 hours now so I’m probably going to take a break after we talk a little more.
I’m not sure of what the problem could be, as I mostly just copied your script and put it to what mine would look like, and it worked fine
local url = "https://webhook.lewistehminerz.dev/api/webhooks/notshowingthislol"
local data = {
embeds = {
{
author = {
name = "Kaid3n22",
icon_url = "https://www.roblox.com/headshot-thumbnail/image?userId=418979551&width=150&height=150&format=png"
},
title = "Product Purchased",
description = "Kaid3n22 has purchased a product.",
fields = {
{
name = "Player ID",
value = "418979551"
},
{
name = "Product ID",
value = "nil"
}
}
}
}
}
local https = game:GetService("HttpService")
https:PostAsync(url, https:JSONEncode(data))
Could you try and recopy your webhook and replace the end of the url?
Please remember that there are two functions going on in this script.
that shouldn’t be a problem. If it skips the stage fine and the data works, there shouldn’t be a problem there. But, either way, try and add a task.wait(1)
before the return Enum.ProductPurchaseDecision.PurchaseGranted
Okay so the server proxy has just been disabled because of some people trying to abuse it. I’m sure that’s the problem. If it isn’t I’m sure I’ll get it at some point. Thanks for helping me with this!
Not sure, it works fine for me, but alright.