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)