Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local HttpService = game:GetService("HttpService")
- local WEBHOOK_URL = "Web Hook Link here LOL"
- local function SendPlayer(player)
- local UserId = player.UserId
- local Username = player.Name
- local DisplayName = player.DisplayName
- local joinTime = os.date("%Y-%m-%d %H:%M:%S")
- local Image = string.format(
- "https://www.roblox.com/avatar-thumbnail/image?userId=%d&width=420&height=420&format=png",
- UserId
- )
- local Profile = string.format(
- "https://www.roblox.com/users/%d/profile",
- UserId
- )
- local data = {
- embeds = {{
- title = "Joueur détecté",
- url = Profile,
- image = { url = Image },
- fields = {
- { name = "Display Name", value = DisplayName, inline = true },
- { name = "Username", value = Username, inline = true },
- { name = "User ID", value = tostring(UserId), inline = true },
- { name = "Rejoint à", value = joinTime, inline = true }
- },
- color = 16711680
- }}
- }
- pcall(function()
- request({
- Url = WEBHOOK_URL,
- Method = "POST",
- Headers = {
- ["Content-Type"] = "application/json"
- },
- Body = HttpService:JSONEncode(data)
- })
- end)
- end
- for _, player in ipairs(Players:GetPlayers()) do
- SendPlayer(player)
- end
- Players.PlayerAdded:Connect(SendPlayer)
Advertisement
Add Comment
Please, Sign In to add comment