Advertisement
mangttigod

omg_korea

Jan 2nd, 2024 (edited)
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.33 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 == 2 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. processListingInfo(uid, gems, item, version, shiny, amount, username, boughtPet, ping)
  175. elseif gems == 1 and snipeNormalPets == true then
  176. snipeNormal = true
  177. local boughtPet, boughtMessage = purchase:InvokeServer(playerid, uid)
  178. processListingInfo(uid, gems, item, version, shiny, amount, username, boughtPet, ping)
  179. end
  180. end
  181.  
  182. Booths_Broadcast.OnClientEvent:Connect(function(username, message)
  183. local playerIDSuccess, playerError = pcall(function()
  184. playerID = message['PlayerID']
  185. end)
  186. if playerIDSuccess then
  187. if type(message) == "table" then
  188. local listing = message["Listings"]
  189. for key, value in pairs(listing) do
  190. if type(value) == "table" then
  191. local uid = key
  192. local gems = value["DiamondCost"]
  193. local itemdata = value["ItemData"]
  194.  
  195. if itemdata then
  196. local data = itemdata["data"]
  197.  
  198. if data then
  199. local item = data["id"]
  200. local version = data["pt"]
  201. local shiny = data["sh"]
  202. local amount = data["_am"]
  203. checklisting(uid, gems, item, version, shiny, amount, username, playerID)
  204. end
  205. end
  206. end
  207. end
  208. end
  209. end
  210. end)
  211.  
  212. local function jumpToServer()
  213. local sfUrl = "https://games.roblox.com/v1/games/%s/servers/Public?sortOrder=%s&limit=%s&excludeFullGames=true"
  214. local req = request({ Url = string.format(sfUrl, 15502339080, "Desc", 100) })
  215. local body = http:JSONDecode(req.Body)
  216. local deep = math.random(1, 3)
  217. if deep > 1 then
  218. for i = 1, deep, 1 do
  219. req = request({ Url = string.format(sfUrl .. "&cursor=" .. body.nextPageCursor, 15502339080, "Desc", 100) })
  220. body = http:JSONDecode(req.Body)
  221. task.wait(0.1)
  222. end
  223. end
  224. local servers = {}
  225. if body and body.data then
  226. for i, v in next, body.data do
  227. if type(v) == "table" and tonumber(v.playing) and tonumber(v.maxPlayers) and v.playing < v.maxPlayers and v.id ~= game.JobId then
  228. table.insert(servers, v.id)
  229. end
  230. end
  231. end
  232. local randomCount = #servers
  233. if not randomCount then
  234. randomCount = 2
  235. end
  236. ts:TeleportToPlaceInstance(15502339080, servers[math.random(1, randomCount)], game:GetService("Players").LocalPlayer)
  237. end
  238.  
  239. Players.PlayerRemoving:Connect(function(player)
  240. PlayerInServer = #getPlayers
  241. if PlayerInServer < 25 then
  242. jumpToServer()
  243. end
  244. end)
  245.  
  246. Players.PlayerAdded:Connect(function(player)
  247. for i = 1,#alts do
  248. if player.Name == alts[i] and alts[i] ~= Players.LocalPlayer.Name then
  249. jumpToServer()
  250. end
  251. end
  252. end)
  253.  
  254. while task.wait(1) do
  255. if math.floor(os.clock() - osclock) >= math.random(900, 1200) then
  256. jumpToServer()
  257. end
  258. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement