Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

HTTP 405 (Method Not Allowed) server script help?

local http = game:GetService("HttpService")

game:GetService("Players").PlayerAdded:Connect(function(player)

end) if not game:GetService("RunService"):IsStudio() then

end

local url = "https://discordapp.com/api/webhooks/0" local url2 = "https://discordapp.com/api/webhooks/0" local http = game:GetService("HttpService")

game.Players.PlayerAdded:connect(function(Player) local HookData = { ['username'] = "SERVER", ['content'] = "" .. Player.Name .. " has joined Area-27." } HookData = http:JSONEncode(HookData) http:PostAsync(url, HookData) Player.Chatted:connect(function(Message) local HookData = { ['username'] = "SERVER", ['content'] = "" .. Player.Name .. ": " .. "" .. Message } HookData = http:JSONEncode(HookData) http:PostAsync(url2, HookData) end) end) local http = game:GetService("HttpService") game.Players.PlayerRemoving:connect(function(Player) local HookData = { ['username'] = "SERVER", ['content'] = "" .. Player.Name .. " has left Area-27." } HookData = http:JSONEncode(HookData) http:PostAsync(url, HookData) end)

1 answer

discord has blocked roblox so you have to use a Proxy

This discussion is preserved as it was. New answers, comments, and votes are closed.