MaxproGlitcher

Bot qui permet d'obtenir la liste de tout ceux qui rejoint le servers

Mar 3rd, 2026
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local HttpService = game:GetService("HttpService")
  3.  
  4. local WEBHOOK_URL = "Web Hook Link here LOL"
  5.  
  6. local function SendPlayer(player)
  7. local UserId = player.UserId
  8. local Username = player.Name
  9. local DisplayName = player.DisplayName
  10.  
  11. local joinTime = os.date("%Y-%m-%d %H:%M:%S")
  12.  
  13. local Image = string.format(
  14. "https://www.roblox.com/avatar-thumbnail/image?userId=%d&width=420&height=420&format=png",
  15. UserId
  16. )
  17.  
  18. local Profile = string.format(
  19. "https://www.roblox.com/users/%d/profile",
  20. UserId
  21. )
  22.  
  23. local data = {
  24. embeds = {{
  25. title = "Joueur détecté",
  26. url = Profile,
  27. image = { url = Image },
  28. fields = {
  29. { name = "Display Name", value = DisplayName, inline = true },
  30. { name = "Username", value = Username, inline = true },
  31. { name = "User ID", value = tostring(UserId), inline = true },
  32. { name = "Rejoint à", value = joinTime, inline = true }
  33. },
  34. color = 16711680
  35. }}
  36. }
  37.  
  38. pcall(function()
  39. request({
  40. Url = WEBHOOK_URL,
  41. Method = "POST",
  42. Headers = {
  43. ["Content-Type"] = "application/json"
  44. },
  45. Body = HttpService:JSONEncode(data)
  46. })
  47. end)
  48. end
  49.  
  50. for _, player in ipairs(Players:GetPlayers()) do
  51. SendPlayer(player)
  52. end
  53.  
  54. Players.PlayerAdded:Connect(SendPlayer)
  55.  
Advertisement
Add Comment
Please, Sign In to add comment