mangttigod

OMG_KOREA_BOOTH_SINPER

Jan 2nd, 2024
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.99 KB | None | 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, snipeNormal
  14.  
  15. if not snipeNormalPets then
  16. snipeNormalPets = false
  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 snipeNormal == true 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. ["footer"] = {
  108. ["icon_url"] = "https://cdn.discordapp.com/attachments/1149218291957637132/1190527382583525416/new-moon-face_1f31a.png?ex=65a22006&is=658fab06&hm=55f8900eef039709c8e57c96702f8fb7df520333ec6510a81c31fc746193fbf2&", -- optional
  109. ["text"] = "Heavily Modified by Root"
  110. }
  111. },
  112. }
  113. }
  114.  
  115. local jsonMessage = http:JSONEncode(message1)
  116. local success, webMessage = pcall(function()
  117. http:PostAsync(weburl, jsonMessage)
  118. end)
  119. if success == false then
  120. local response = request({
  121. Url = weburl,
  122. Method = "POST",
  123. Headers = {
  124. ["Content-Type"] = "application/json"
  125. },
  126. Body = jsonMessage
  127. })
  128. end
  129. end
  130.  
  131. local function checklisting(uid, gems, item, version, shiny, amount, username, playerid)
  132. local Library = require(rs:WaitForChild('Library'))
  133. local purchase = rs.Network.Booths_RequestPurchase
  134. gems = tonumber(gems)
  135. local ping = false
  136. snipeNormal = false
  137. local type = {}
  138. pcall(function()
  139. type = Library.Directory.Pets[item]
  140. end)
  141.  
  142. if amount == nil then
  143. amount = 1
  144. end
  145.  
  146. local price = gems / amount
  147.  
  148. if type.exclusiveLevel and price <= 10000 and item ~= "Banana" and item ~= "Coin" then
  149. local boughtPet, boughtMessage = purchase:InvokeServer(playerid, uid)
  150. processListingInfo(uid, gems, item, version, shiny, amount, username, boughtPet, ping)
  151. elseif item == "Titanic Christmas Present" and price <= 25000 then
  152. local boughtPet, boughtMessage = purchase:InvokeServer(playerid, uid)
  153. processListingInfo(uid, gems, item, version, shiny, amount, username, boughtPet, ping)
  154. elseif string.find(item, "Exclusive") and price <= 25000 then
  155. local boughtPet, boughtMessage = purchase:InvokeServer(playerid, uid)
  156. processListingInfo(uid, gems, item, version, shiny, amount, username, boughtPet, ping)
  157. elseif type.huge and price <= 1000000 then
  158. local boughtPet, boughtMessage = purchase:InvokeServer(playerid, uid)
  159. if boughtPet == true then
  160. ping = true
  161. end
  162. processListingInfo(uid, gems, item, version, shiny, amount, username, boughtPet, ping)
  163. elseif type.titanic and price <= 10000000 then
  164. local boughtPet, boughtMessage = purchase:InvokeServer(playerid, uid)
  165. if boughtPet == true then
  166. ping = true
  167. end
  168. processListingInfo(uid, gems, item, version, shiny, amount, username, boughtPet, ping)
  169. elseif gems == 1 and snipeNormalPets == true then
  170. snipeNormal = true
  171. local boughtPet, boughtMessage = purchase:InvokeServer(playerid, uid)
  172. processListingInfo(uid, gems, item, version, shiny, amount, username, boughtPet, ping)
  173. end
  174. end
  175.  
  176. Booths_Broadcast.OnClientEvent:Connect(function(username, message)
  177. local playerIDSuccess, playerError = pcall(function()
  178. playerID = message['PlayerID']
  179. end)
  180. if playerIDSuccess then
  181. if type(message) == "table" then
  182. local listing = message["Listings"]
  183. for key, value in pairs(listing) do
  184. if type(value) == "table" then
  185. local uid = key
  186. local gems = value["DiamondCost"]
  187. local itemdata = value["ItemData"]
  188.  
  189. if itemdata then
  190. local data = itemdata["data"]
  191.  
  192. if data then
  193. local item = data["id"]
  194. local version = data["pt"]
  195. local shiny = data["sh"]
  196. local amount = data["_am"]
  197. checklisting(uid, gems, item, version, shiny, amount, username, playerID)
  198. end
  199. end
  200. end
  201. end
  202. end
  203. end
  204. end)
  205.  
  206. local function jumpToServer()
  207. local sfUrl = "https://games.roblox.com/v1/games/%s/servers/Public?sortOrder=%s&limit=%s&excludeFullGames=true"
  208. local req = request({ Url = string.format(sfUrl, 15502339080, "Desc", 100) })
  209. local body = http:JSONDecode(req.Body)
  210. local deep = math.random(1, 3)
  211. if deep > 1 then
  212. for i = 1, deep, 1 do
  213. req = request({ Url = string.format(sfUrl .. "&cursor=" .. body.nextPageCursor, 15502339080, "Desc", 100) })
  214. body = http:JSONDecode(req.Body)
  215. task.wait(0.1)
  216. end
  217. end
  218. local servers = {}
  219. if body and body.data then
  220. for i, v in next, body.data do
  221. if type(v) == "table" and tonumber(v.playing) and tonumber(v.maxPlayers) and v.playing < v.maxPlayers and v.id ~= game.JobId then
  222. table.insert(servers, v.id)
  223. end
  224. end
  225. end
  226. local randomCount = #servers
  227. if not randomCount then
  228. randomCount = 2
  229. end
  230. ts:TeleportToPlaceInstance(15502339080, servers[math.random(1, randomCount)], game:GetService("Players").LocalPlayer)
  231. end
  232.  
  233. Players.PlayerRemoving:Connect(function(player)
  234. PlayerInServer = #getPlayers
  235. if PlayerInServer < 25 then
  236. jumpToServer()
  237. end
  238. end)
  239.  
  240. Players.PlayerAdded:Connect(function(player)
  241. for i = 1,#alts do
  242. if player.Name == alts[i] and alts[i] ~= Players.LocalPlayer.Name then
  243. jumpToServer()
  244. end
  245. end
  246. end)
  247.  
  248. while task.wait(1) do
  249. if math.floor(os.clock() - osclock) >= math.random(900, 1200) then
  250. jumpToServer()
  251. end
  252. end
Add Comment
Please, Sign In to add comment