Hi! Im trying to use a webhook to show someones level, gold and resets, but when i try and do that, it shows me this. . Any help would be nice, Thanks!
Code:
local HttpServ = game:GetService('HttpService')
local url = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
game.Players.PlayerAdded:Connect(function(plr)
wait(16)
local data =
{
["content"] = "",
["embeds"] = {{
["title"] = "**Player Joined!**",
["description"] = "Name of Player "..plr.Name,
["type"] = "rich",
["color"] = tonumber(0xff0000),
["fields"] = {
{
["name"] = "LOVE",
["value"] = plr.LOVE.Value,
["inline"] = true
},
{
["name"] = "GOLD",
["value"] = plr.Gold.Value,
["inline"] = true
},
{
["name"] = "Resets",
["value"] = plr.Resets.Value,
["inline"] = true
}
}}
}}
local newdata = HttpServ:JSONEncode(data)
HttpServ:PostAsync(url, newdata)
end)