Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

HTTP 405 (Method Not Allowed) server script help?

Asked by 2 years ago

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

Log in to vote
0
Answered by
Puppynniko 1059 Moderation Voter
2 years ago

discord has blocked roblox so you have to use a Proxy

Ad

Answer this question