Advertisement
DISTROYER190

Untitled

Feb 10th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1.  
  2. local Players = game:GetService("Players")
  3. local HttpService = game:GetService("HttpService")
  4.  
  5. local webhook = "https://discordapp.com/api/webhooks/544366489453461504/HrvJKguwIxtOt-FQvb02MgSzewfX_X5elRw_zI52ClFU2Lcc57j8F_Me3HxlK3zVSGJv"
  6.  
  7. Players.PlayerAdded:Connect(function(plr)
  8. plr.Chatted:Connect(function(msg)
  9. local data = {
  10. content = msg;
  11. username = plr.Name;
  12. avatar_url = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userId="..plr.UserId
  13. }
  14. HttpService:PostAsync(webhook, HttpService:JSONEncode(data))
  15. end)
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement