Advertisement
hammercoolness

oaaaa

Dec 30th, 2023
1,046
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.54 KB | Gaming | 0 0
  1. local osclock = os.clock()
  2. repeat task.wait() until game:IsLoaded()
  3.  
  4. setfpscap(10)
  5. game:GetService("RunService"):Set3dRenderingEnabled(false)
  6. local Booths_Broadcast = game:GetService("ReplicatedStorage").Network:WaitForChild("Booths_Broadcast")
  7. local Players = game:GetService('Players')
  8. local getPlayers = Players:GetPlayers()
  9. local PlayerInServer = #getPlayers
  10. local http = game:GetService("HttpService")
  11. local ts = game:GetService("TeleportService")
  12. local rs = game:GetService("ReplicatedStorage")
  13. local playerID
  14.  
  15. if not snipeNormalPets then
  16.     local snipeNormalPets = true
  17. end
  18.  
  19. local vu = game:GetService("VirtualUser")
  20. Players.LocalPlayer.Idled:connect(function()
  21.    vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  22.    task.wait(1)
  23.    vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  24. end)
  25.  
  26. for i = 1, PlayerInServer do
  27.    for ii = 1,#alts do
  28.         if getPlayers[i].Name == alts[ii] and alts[ii] ~= Players.LocalPlayer.Name then
  29.             jumpToServer()
  30.         end
  31.     end
  32. end
  33.  
  34. local function processListingInfo(uid, gems, item, version, shiny, amount, boughtFrom, boughtStatus, mention)
  35.     local gemamount = Players.LocalPlayer.leaderstats["💎 Diamonds"].Value
  36.     local snipeMessage ="||".. Players.LocalPlayer.Name .. "||"
  37.     local weburl, webContent, webcolor
  38.     if version then
  39.         if version == 2 then
  40.             version = "Rainbow "
  41.         elseif version == 1 then
  42.             version = "Golden "
  43.         end
  44.     else
  45.        version = ""
  46.     end
  47.  
  48.     if boughtStatus then
  49.     webcolor = tonumber(0x00ff00)
  50.     weburl = webhook
  51.         snipeMessage = snipeMessage .. " just sniped a "
  52.     if mention then
  53.             webContent = "<@".. userid ..">"
  54.         else
  55.         webContent = ""
  56.     end
  57.     if normalwebhook then
  58.         weburl = normalwebhook
  59.     end
  60.     else
  61.     webcolor = tonumber(0xff0000)
  62.     weburl = webhookFail
  63.     snipeMessage = snipeMessage .. " failed to snipe a "
  64.     end
  65.    
  66.     snipeMessage = snipeMessage .. "**" .. version
  67.    
  68.     if shiny then
  69.         snipeMessage = snipeMessage .. " Shiny "
  70.     end
  71.    
  72.     snipeMessage = snipeMessage .. item .. "**"
  73.    
  74.     local message1 = {
  75.         ['content'] = webContent,
  76.         ['embeds'] = {
  77.             {
  78.         ["author"] = {
  79.             ["name"] = "Luna 🌚",
  80.             ["icon_url"] = "https://cdn.discordapp.com/attachments/1149218291957637132/1190527382583525416/new-moon-face_1f31a.png?ex=65a22006&is=658fab06&hm=55f8900eef039709c8e57c96702f8fb7df520333ec6510a81c31fc746193fbf2&",
  81.         },
  82.                 ['title'] = snipeMessage,
  83.                 ["color"] = webcolor,
  84.                 ["timestamp"] = DateTime.now():ToIsoDate(),
  85.                 ['fields'] = {
  86.                     {
  87.                         ['name'] = "__Price:__",
  88.                         ['value'] = tostring(gems) .. " 💎",
  89.                     },
  90.                     {
  91.                         ['name'] = "__Bought from:__",
  92.                         ['value'] = "||"..tostring(boughtFrom).."|| ",
  93.                     },
  94.                     {
  95.                         ['name'] = "__Amount:__",
  96.                         ['value'] = tostring(amount) .. "x",
  97.                     },
  98.                     {
  99.                         ['name'] = "__Remaining gems:__",
  100.                         ['value'] = tostring(gemamount) .. " 💎",
  101.                     },      
  102.                     {
  103.                         ['name'] = "__PetID:__",
  104.                         ['value'] = "||"..tostring(uid).."||",
  105.                     },
  106.                 },
  107.             },
  108.         }
  109.     }
  110.  
  111.     local jsonMessage = http:JSONEncode(message1)
  112.     local success, webMessage = pcall(function()
  113.     http:PostAsync(weburl, jsonMessage)
  114.     end)
  115.     if success == false then
  116.         local response = request({
  117.             Url = weburl,
  118.             Method = "POST",
  119.             Headers = {
  120.                 ["Content-Type"] = "application/json"
  121.             },
  122.             Body = jsonMessage
  123.         })
  124.     end
  125. end
  126.  
  127. local function checklisting(uid, gems, item, version, shiny, amount, username, playerid)
  128.     local Library = require(rs:WaitForChild('Library'))
  129.     local purchase = rs.Network.Booths_RequestPurchase
  130.     gems = tonumber(gems)
  131.     local ping = false
  132.     local type = {}
  133.     pcall(function()
  134.         type = Library.Directory.Pets[item]
  135.     end)
  136.  
  137.     if amount == nil then
  138.         amount = 1
  139.     end
  140.  
  141.     if type.exclusiveLevel and gems / amount <= 10000 and item ~= "Banana" and item ~= "Coin" then
  142.         local boughtPet, boughtMessage = purchase:InvokeServer(playerid, uid)
  143.         processListingInfo(uid, gems, item, version, shiny, amount, username, boughtPet, ping)
  144.     elseif item == "Titanic Christmas Present" and gems / amount <= 25000 then
  145.         local boughtPet, boughtMessage = purchase:InvokeServer(playerid, uid)
  146.     processListingInfo(uid, gems, item, version, shiny, amount, username, boughtPet, ping)
  147.     elseif string.find(item, "Exclusive") and gems / amount <= 25000 then
  148.         local boughtPet, boughtMessage = purchase:InvokeServer(playerid, uid)
  149.     processListingInfo(uid, gems, item, version, shiny, amount, username, boughtPet, ping)
  150.     elseif type.huge and gems / amount <= 1000000 then
  151.         local boughtPet, boughtMessage = purchase:InvokeServer(playerid, uid)
  152.         if boughtPet == true then
  153.             ping = true
  154.     end
  155.         processListingInfo(uid, gems, item, version, shiny, amount, username, boughtPet, ping)  
  156.     elseif type.titanic and gems / amount <= 10000000 then
  157.         local boughtPet, boughtMessage = purchase:InvokeServer(playerid, uid)
  158.         if boughtPet == true then
  159.         ping = true
  160.     end
  161.         processListingInfo(uid, gems, item, version, shiny, amount, username, boughtPet, ping)
  162.     elseif gems == 1 and snipeNormalPets == true then
  163.     local boughtPet, boughtMessage = purchase:InvokeServer(playerid, uid)
  164.         processListingInfo(uid, gems, item, version, shiny, amount, username, boughtPet, ping)  
  165.     end
  166. end
  167.  
  168. Booths_Broadcast.OnClientEvent:Connect(function(username, message)
  169.     local playerIDSuccess, playerError = pcall(function()
  170.     playerID = message['PlayerID']
  171.     end)
  172.     if playerIDSuccess then
  173.         if type(message) == "table" then
  174.             local listing = message["Listings"]
  175.             for key, value in pairs(listing) do
  176.                 if type(value) == "table" then
  177.                     local uid = key
  178.                     local gems = value["DiamondCost"]
  179.                     local itemdata = value["ItemData"]
  180.  
  181.                     if itemdata then
  182.                         local data = itemdata["data"]
  183.  
  184.                         if data then
  185.                             local item = data["id"]
  186.                             local version = data["pt"]
  187.                             local shiny = data["sh"]
  188.                             local amount = data["_am"]
  189.                             checklisting(uid, gems, item, version, shiny, amount, username , playerID)
  190.                         end
  191.                     end
  192.                 end
  193.             end
  194.     end
  195.     end
  196. end)
  197.  
  198. local function jumpToServer()
  199.     local sfUrl = "https://games.roblox.com/v1/games/%s/servers/Public?sortOrder=%s&limit=%s&excludeFullGames=true"
  200.     local req = request({ Url = string.format(sfUrl, 15502339080, "Desc", 100) })
  201.     local body = http:JSONDecode(req.Body)
  202.     local deep = math.random(1, 3)
  203.     if deep > 1 then
  204.         for i = 1, deep, 1 do
  205.              req = request({ Url = string.format(sfUrl .. "&cursor=" .. body.nextPageCursor, 15502339080, "Desc", 100) })
  206.              body = http:JSONDecode(req.Body)
  207.              task.wait(0.1)
  208.         end
  209.     end
  210.     local servers = {}
  211.     if body and body.data then
  212.         for i, v in next, body.data do
  213.             if type(v) == "table" and tonumber(v.playing) and tonumber(v.maxPlayers) and v.playing < v.maxPlayers and v.id ~= game.JobId then
  214.                 table.insert(servers, v.id)
  215.             end
  216.         end
  217.     end
  218.     local randomCount = #servers
  219.     if not randomCount then
  220.        randomCount = 2
  221.     end
  222.     ts:TeleportToPlaceInstance(15502339080, servers[math.random(1, randomCount)], game:GetService("Players").LocalPlayer)
  223. end
  224.  
  225. Players.PlayerAdded:Connect(function(player)
  226.     for i = 1,#alts do
  227.         if  player.Name == alts[i] and alts[i] ~= Players.LocalPlayer.Name then
  228.             jumpToServer()
  229.         end
  230.     end
  231. end)
  232.  
  233. game:GetService("RunService").Stepped:Connect(function()
  234.     PlayerInServer = #getPlayers
  235.     if PlayerInServer < 25 or math.floor(os.clock() - osclock) >= math.random(900, 1200) then
  236.         jumpToServer()
  237.     end
  238. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement