I have some script that wont work. Now what this script does: basically sends some data to discord about players joining and leaving game and when. Now I’m pretty sure there is no issue with the script itself since I checked it and it used to work before just fine. But now, it just throws a HTTP 403 error in the console and doesn’t work.
Here is a part of it, the other half is same but for leaving.
local http = game:GetService("HttpService")
local Webhook = "discord link" -- cant show it
game:GetService("Players").PlayerAdded:Connect(function(player)
if not game:GetService("RunService"):IsStudio() then
local date = os.date("!*t")
local Data = {
["content"] = "`"..player.Name.." has joined Area Echo on "..date.month.."/"..date.day.."/"..date.year.." "..date.hour..":"..date.min.."GMT, Servertime: "..tostring(workspace.DistributedGameTime).."`"
}
Data = http:JSONEncode(Data)
http:PostAsync(Webhook, Data)
end
end)
Anyone know how to fix?