local HTTP = game:GetService("HttpService")
local Key = "(delet this and put your webhook key, the long link on the webhook details in discord)"
local HookData = {
['content'] = "";
}
game.Players.PlayerAdded:connect(function(player)
HookData.content = ("**" .. player.Name .. "**" .. " has joined the server!")
HTTP:PostAsync(Key, HTTP:JSONEncode(HookData))
end)
game.Players.PlayerRemoving:connect(function(player)
HookData.content = ("**" .. player.Name .. "**" .. " has left the server!")
HTTP:PostAsync(Key, HTTP:JSONEncode(HookData))
end)
local Key = "(delet this and put your webhook key, the long link on the webhook details in discord)"
local HookData = {
['content'] = "";
}
game.Players.PlayerAdded:connect(function(player)
HookData.content = ("**" .. player.Name .. "**" .. " has joined the server!")
HTTP:PostAsync(Key, HTTP:JSONEncode(HookData))
end)
game.Players.PlayerRemoving:connect(function(player)
HookData.content = ("**" .. player.Name .. "**" .. " has left the server!")
HTTP:PostAsync(Key, HTTP:JSONEncode(HookData))
end)