Advertisement
DrawingJhon

Discord test

Jun 3rd, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. local HttpService = game:GetService("HttpService")
  2. local disabled = false
  3. local webhook = "https://discord.com/api/webhooks/717394130849759293/U35GhxkKEDej4I3GrQlTqiHCUceAOJ7Bh54JYWM6i47XH2a1zAIMDv71Mh9MiuKpKkeh"
  4. local GetPlace = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId)
  5. --print(GetPlace.Name)
  6. local list = {"Player1","Player2","Player3","Player4"}
  7. for i, v in pairs(list) do
  8. if disabled == false then
  9. local data = {
  10. ['embeds'] = {{
  11. ['title'] = "Player Joined!",
  12. ['description'] = "Something left the game!",
  13. ['color'] = 33535,
  14. ['fields'] = {
  15. {
  16. ['name'] = "**There are 4 players:**",
  17. ['value'] = v,
  18. ['inline'] = true
  19. },
  20. {
  21. ['name'] = "**Game:**",
  22. ['value'] = "["..GetPlace.Name.."](..https://www.roblox.com/games/"..game.PlaceId..")",
  23. ['inline'] = true
  24. }
  25. },
  26. ['thumbnail'] = {
  27. ['url'] = "https://www.roblox.com/bust-thumbnail/image?userId=652513366&width=420&height=420&format=png"
  28. }
  29. }}
  30. }
  31. HttpService:PostAsync(webhook, HttpService:JSONEncode(data))
  32. end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement