Facebook
From a, 1 Week ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 72
  1.  
  2. function SendMessage(url, message)
  3.     local http = game:GetService("HttpService")
  4.     local headers = {
  5.         ["Content-Type"] = "application/json"
  6.     }
  7.     local data = {
  8.         ["content"] = message
  9.     }
  10.     local body = http:JSONEncode(data)
  11.     local response = request({
  12.         Url = url,
  13.         Method = "POST",
  14.         Headers = headers,
  15.         Body = body
  16.     })
  17.     print("Sent")
  18. end
  19.  
  20. function SendMessageEMBED(url, embed)
  21.     local http = game:GetService("HttpService")
  22.     local headers = {
  23.         ["Content-Type"] = "application/json"
  24.     }
  25.     local data = {
  26.         ["embeds"] = {
  27.             {
  28.                 ["title"] = embed.title,
  29.                 ["description"] = embed.description,
  30.                 ["color"] = embed.color,
  31.                 ["fields"] = embed.fields,
  32.                 ["footer"] = {
  33.                     ["text"] = embed.footer.text
  34.                 }
  35.             }
  36.         }
  37.     }
  38.     local body = http:JSONEncode(data)
  39.     local response = request({
  40.         Url = url,
  41.         Method = "POST",
  42.         Headers = headers,
  43.         Body = body
  44.     })
  45.     print("Sent")
  46. end
  47. local url = "https://discord.com/api/webhooks/1231547172982493256/c6TuJecX00N-8YexTEixYMvohb7cSrFxVbIlGvB0FvjIPtH38IGghjp1N8WytOxkC1Qa"
  48. local id = "1231544354829631579"
  49.  
  50.  
  51. local ammount = {}
  52. local items = game.Players.LocalPlayer.PlayerGui.MainGui.HUD.SidePanel.Buttons.Pets
  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) .. ">")
  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"] = game:GetService("Players").LocalPlayer.World.Value
  81.         }
  82.     },
  83.     ["footer"] = {
  84.         ["text"] = "script duoc viet boi DatNguyen"
  85.     }
  86. }
  87. SendMessageEMBED(url, embed)