Facebook
From das, 1 Week ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 78
  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. getgenv().Ammount  = ""
  52.  
  53. --getgenv().Load = true
  54. --while task.wait(.5) do
  55. local items = game.Players.LocalPlayer.PlayerGui.MainGui.HUD.SidePanel.Buttons.Pets
  56. --player.Character.HumanoidRootPart.CFrame = game.Workspace.Worlds.SDS.Teleporter.Teleporter:GetModelCFrame()
  57.  --setclipboard(tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame))
  58.  
  59.   for i,v in pairs(items:GetDescendants()) do
  60.   if v:IsA("Frame") and v.Name == "Notification" and v:FindFirstChild("Amount") then
  61.  getgenv().Ammount = v.Amount.Text
  62.      end
  63.     end
  64.  
  65.  SendMessage(url, "<@&" .. tostring(id) .. ">")
  66.  
  67.  
  68. local embed = {
  69.     ["title"] = "Capsule Drops [ Coded by DatNguyen ]",
  70.     ["description"] = "Username: ||" .. game.Players.LocalPlayer.Name .. "||" ,
  71.     ["color"] = 65280,
  72.     ["fields"] = {
  73.   {
  74.             ["name"] = "**Capsule Name:**",
  75.             ["value"] = "Sin Summon"
  76.         },
  77.         {
  78.             ["name"] = "**Capsule Amount Dropped:**",
  79.             ["value"] =  getgenv().Ammount
  80.         },
  81.         {
  82.             ["name"] = "**World:**",
  83.             ["value"] = game:GetService("Players").LocalPlayer.World.Value
  84.         }
  85.     },
  86.     ["footer"] = {
  87.         ["text"] = "script duoc viet boi DatNguyen"
  88.     }
  89. }
  90. SendMessageEMBED(url, embed)
  91. task.wait(.2)
  92. for i,v in pairs(items:GetDescendants()) do
  93.     if v:IsA("Frame") and v.Name == "Notification" then
  94.   v:Destroy()
  95.     end
  96.    end
  97.  
  98.