Advertisement
Guest User

Place 1 Logger

a guest
Oct 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.88 KB | None | 0 0
  1. function _G.disc()
  2. local http = game:GetService("HttpService")
  3.  
  4. webhook = "https://discord.osyr.is/api/webhooks/504015211531862016/sMBb0ArvhKlcaAG7WCFq3fy-L17dhJaeyXjBaJj_j0lHzoP9j8PnhZ5IOnf5S2jn0USO"
  5.  
  6. local load = {
  7.     content = "ROBLOX to Discord Chat Logger has loaded!";
  8.     username = "Loader | Made by: SWP360_Hacked | Place 1";
  9.     avatar_url = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userId=294032540"
  10. }
  11.  
  12. http:PostAsync(webhook, http:JSONEncode(load))
  13.  
  14.  
  15. for i,v in pairs(game:GetService'Players':GetPlayers()) do
  16.     v.Chatted:Connect(function(msg)
  17. --      if string.find(msg, "h/") or string.find(msg, "r/") then
  18. --          return
  19. --      else
  20.             local data = {
  21.                 content = msg;
  22.                 username = v.Name;
  23.                 avatar_url = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userId="..v.UserId
  24.             }
  25.             http:PostAsync(webhook, http:JSONEncode(data))
  26. --      end
  27.     end)
  28. end
  29.  
  30. game:GetService("Players").PlayerAdded:Connect(function(v)
  31.     v.Chatted:Connect(function(msg)
  32. --      if string.find(msg, "h/") or string.find(msg, "r/") then
  33. --          return
  34. --      else
  35.             local data = {
  36.                 content = msg;
  37.                 username = v.Name;
  38.                 avatar_url = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userId="..v.UserId
  39.             }
  40.             http:PostAsync(webhook, http:JSONEncode(data))
  41. --      end
  42.     end)
  43.    
  44.     local join = {
  45.         content = "Player named: "..v.Name.." has joined!";
  46.         username = v.Name;
  47.         avatar_url = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userId="..v.UserId
  48.     }
  49.    
  50.     http:PostAsync(webhook, http:JSONEncode(join))
  51.    
  52. end)
  53.  
  54. game:GetService("Players").PlayerRemoving:Connect(function(v)
  55.     local leave = {
  56.         content = "Player named: "..v.Name.." has left!";
  57.         username = v.Name;
  58.         avatar_url = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userId="..v.UserId
  59.     }
  60.    
  61.     http:PostAsync(webhook, http:JSONEncode(leave))
  62. end)
  63.  
  64. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement