Facebook
From s, 1 Week ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 74
  1. function SendMessage(url, message)
  2.     local http = game:GetService("HttpService")
  3.     local headers = {
  4.         ["Content-Type"] = "application/json"
  5.     }
  6.     local data = {
  7.         ["content"] = message
  8.     }
  9.     local body = http:JSONEncode(data)
  10.     local response = request({
  11.         Url = url,
  12.         Method = "POST",
  13.         Headers = headers,
  14.         Body = body
  15.     })
  16.     print("Sent")
  17. end
  18.  
  19. function SendMessageEMBED(url, embed)
  20.     local http = game:GetService("HttpService")
  21.     local headers = {
  22.         ["Content-Type"] = "application/json"
  23.     }
  24.     local data = {
  25.         ["embeds"] = {
  26.             {
  27.                 ["title"] = embed.title,
  28.                 ["description"] = embed.description,
  29.                 ["color"] = embed.color,
  30.                 ["fields"] = embed.fields,
  31.                 ["footer"] = {
  32.                     ["text"] = embed.footer.text
  33.                 }
  34.             }
  35.         }
  36.     }
  37.     local body = http:JSONEncode(data)
  38.     local response = request({
  39.         Url = url,
  40.         Method = "POST",
  41.         Headers = headers,
  42.         Body = body
  43.     })
  44.     print("Sent")
  45. end
  46. local url = "https://discord.com/api/webhooks/1231547172982493256/c6TuJecX00N-8YexTEixYMvohb7cSrFxVbIlGvB0FvjIPtH38IGghjp1N8WytOxkC1Qa"
  47. local id = "1231544354829631579"
  48.  
  49.  
  50. local ammount = {}
  51. local items = game.Players.LocalPlayer.PlayerGui.MainGui.HUD.SidePanel.Buttons.Pets
  52. local world = game:GetService("Players").LocalPlayer.World.Value
  53. --player.Character.HumanoidRootPart.CFrame = game.Workspace.Worlds.SDS.Teleporter.Teleporter:GetModelCFrame()
  54.  --setclipboard(tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame))
  55.  
  56.   for i,v in pairs(items:GetDescendants()) do
  57.   if v:IsA("Frame") and v.Name == "Notification" and v:FindFirstChild("Amount") then
  58.   table.insert(ammount,v.Amount.Text)
  59.   end
  60.  end
  61.  
  62.  SendMessage(url, "<@&" .. tostring(id) .. ">" .. "TEST ONLY. TEST CHUC NANG")
  63.  
  64.  
  65. local embed = {
  66.     ["title"] = "Capsule Drops [ Coded by DatNguyen ]",
  67.     ["description"] = "Username: ||" .. game.Players.LocalPlayer.Name .. "||" ,
  68.     ["color"] = 65280,
  69.     ["fields"] = {
  70.   {
  71.             ["name"] = "**Capsule Name:**",
  72.             ["value"] = "Sin Summon"
  73.         },
  74.         {
  75.             ["name"] = "**Capsule Amount Dropped:**",
  76.             ["value"] =  ammount
  77.         },
  78.         {
  79.             ["name"] = "**World:**",
  80.             ["value"] = world
  81.         }
  82.     },
  83.     ["footer"] = {
  84.         ["text"] = game:GetService("Players").LocalPlayer.PlayerGui.HUD.Exp.Text
  85.     }
  86. }
  87. SendMessageEMBED(url, embed)