local HTTPService = game:GetService("HttpService")
local url = --PRIVATE
game.Players.PlayerAdded:Connect(function()
local data = {
["Content"] = "This message was genarated from ME and coded by ME!";
}
local finalData = HTTPService:JSONEncode(data)
HTTPService:PostAsync(url, finalData)
end)
From the limited information that you gave us, I believe that you are trying to use a Discord webhook.
First things first: You will need a proxy server to be able to send in Discord Webhook, as Discord has disallowed Roblox from sending Http requests on Webhooks and bots. In other words, use a proxy or it will only work on Studio, but not in actual Roblox servers.
Once you got the proxy done, you should lower the “c” in [“Content”]. So it should look like this:
local HTTPService = game:GetService("HttpService")
local url = --PRIVATE
game.Players.PlayerAdded:Connect(function()
local data = {
["content"] = "This message was genarated from ME and coded by ME!";
}
local finalData = HTTPService:JSONEncode(data)
HTTPService:PostAsync(url, finalData)
end)