I was wondering if there was a way to get this script working?
local url = "https://discordapp.com/api/webhooks/486285105581785089/EC7e13TNSN9LGyWhPHr2a0FXu-r6rNm1X2LcZytCb5aip5gKLzkI0iMepDQWGIJ7JbFw" local http = game:GetService("HttpService") game.Players.PlayerAdded:Connect(function(Player) local HookData = { ['username'] = "SERVER", ['content'] = "**" .. Player.Name .. " has joined.**" } HookData = http:JSONEncode(HookData) http:PostAsync(url, HookData) Player.Chatted:connect(function(Message) if Player.leaderstats.Rank.Value == "The Founder" then return nil end local HookData = { ['username'] = "SERVER", ['content'] = "***" .. Player.Name .. ": " .. "***" .. Message } HookData = http:JSONEncode(HookData) http:PostAsync(url, HookData) end) end) game.Players.PlayerRemoving:Connect(function(Player) local HookData = { ['username'] = "SERVER", ['content'] = "**" .. Player.Name .. " has left.**" } HookData = http:JSONEncode(HookData) http:PostAsync(url, HookData) end)
Discord blocked ROBLOX servers from sending requests since users likely flooded discord's servers and caused API outages every once in awhile more frequently.
The quick fix is using osyris's proxy (you will get banned from using it if you abuse it)
(replace guildID and BOTTOKEN with their respective values, comment on this answer if you need help)
local url = "https://discord.osyr.is/api/webhooks/guildID/BOTTOKEN"