I don't understand why I got this error.
Server
local Acces = "https://discordapp.com/api/webhooks/Censored/Censored" local REvent = game:GetService("Players"):WaitForChild("test") local HTTP = game:GetService("HttpService") function REvent.OnServerInvoke() HTTP:PostAsync(Acces, HTTP:JSONEncode({["content"] = ("test")})) end
Client
script.Parent.MouseButton1Down:Connect(function() game.Players.test:InvokeServer() end)
Discord has blocked anyone with ROBLOX's UserAgent (Roblox/WinInet
) from using their API.
Studio uses a different UserAgent (RobloxStudio/WinInet
IIRC) which isn't blocked by Discord.
You'll have to use a proxy.