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