Facebook
From s, 1 Week ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 76
  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.Text)
  59.  
  60.  
  61.  SendMessage(url, "<@&" .. tostring(id) .. ">" .. "TEST ONLY. TEST CHUC NANG")
  62.  
  63.  
  64. local embed = {
  65.     ["title"] = "Capsule Drops [ Coded by DatNguyen ]",
  66.     ["description"] = "Username: ||" .. game.Players.LocalPlayer.Name .. "||" ,
  67.     ["color"] = 65280,
  68.     ["fields"] = {
  69.   {
  70.             ["name"] = "**Capsule Name:**",
  71.             ["value"] = "Sin Summon"
  72.         },
  73.         {
  74.             ["name"] = "**Capsule Amount Dropped:**",
  75.             ["value"] =  tostring(ammount)
  76.         },
  77.         {
  78.             ["name"] = "**World:**",
  79.             ["value"] = game:GetService("Players").LocalPlayer.World.Value
  80.         }
  81.     },
  82.     ["footer"] = {
  83.         ["text"] = "script duoc viet boi DatNguyen"
  84.     }
  85. }
  86. SendMessageEMBED(url, embed)
  87. end
  88. end