Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. local url = "https://discordapp.com/api/webhooks/644663540535394334/1_Vf97ncXIaco2nWynPMHDbH7OIWHo49xhdGnJw9aco-L4BnQPo2XUTKbIuoFoanLigb"
  2. local http = game:GetService("HttpService")
  3. local Armed = 5262567
  4. local Military = 5264151
  5. local Imperial = 5264019
  6. local Governmental = 5264240
  7.  
  8. game.Players.PlayerAdded:Connect(function(player)
  9. player.Chatted:connect(function(msg)
  10. local data = {
  11. ['embeds'] = {{
  12. color = 00000,
  13. title = "Chat logs",
  14. fields = {
  15. {
  16. name = "``[ Current Team: " ..player.Team.Name.. " - Armed Forces: "..player:GetRoleInGroup(Armed).. " Military Police: "..player:GetRoleInGroup(Military).. " Imperial Guard: "..player:GetRoleInGroup(Imperial).. " Governmental Military: "..player:GetRoleInGroup(Governmental).. "]`` " ..player.Name,
  17. value = msg,
  18. }
  19. }
  20. }}
  21. }
  22. local newdata = http:JSONEncode(data)
  23. http:PostAsync(url,newdata)
  24. end)
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement