Advertisement
Peerapat_PKY

AD Config Ax

Jun 20th, 2024 (edited)
7,101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. if isfolder('Luarmor') then delfolder('Luarmor') end
  2. getgenv().Configuration = {
  3. ['Enabled'] = true,
  4. ['Enabled Challenge'] = true,
  5. ['PC Name'] = 'Xenon Hub 1',
  6. ['Delay'] = 10, -- Seconds
  7. ['Leave Delay'] = 5,
  8. ['Leave At Wave'] = 31,
  9. ['Leave Method'] = 1, -- 1 = Sell, 2 = Leave
  10. };
  11. getgenv().key = '171840436766'
  12. loadstring(game:HttpGet('https://raw.githubusercontent.com/Xenon-Trash/Loader/main/Loader.lua'))()
  13.  
  14. repeat task.wait() until game:IsLoaded()
  15. getgenv().Hermanos_Settings = {
  16. ['key'] = 'bafd2512-771b-4091-b5fe-069e746eaf1f',
  17. ['PC'] = 'SandBox',
  18. ['mode'] = 'Website', --- Duo, Description, Website
  19. }
  20. task.spawn(function() loadstring(game:HttpGet('https://raw.githubusercontent.com/hermanos-dev/hermanos-script/main/ad-main.lua'))() end)
  21. local PlaceID = game.PlaceId
  22. local AllIDs = {}
  23. local foundAnything = ""
  24. local actualHour = os.date("!*t").hour
  25. local Deleted = false
  26.  
  27. function TPReturner()
  28. local Site;
  29. if foundAnything == "" then
  30. Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100'))
  31. else
  32. Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100&cursor=' .. foundAnything))
  33. end
  34. local ID = ""
  35. if Site.nextPageCursor and Site.nextPageCursor ~= "null" and Site.nextPageCursor ~= nil then
  36. foundAnything = Site.nextPageCursor
  37. end
  38. local num = 0;
  39. for i,v in pairs(Site.data) do
  40. local Possible = true
  41. ID = tostring(v.id)
  42. if tonumber(v.maxPlayers) > tonumber(v.playing) then
  43. for _,Existing in pairs(AllIDs) do
  44. if num ~= 0 then
  45. if ID == tostring(Existing) then
  46. Possible = false
  47. end
  48. else
  49. if tonumber(actualHour) ~= tonumber(Existing) then
  50. local delFile = pcall(function()
  51. AllIDs = {}
  52. table.insert(AllIDs, actualHour)
  53. end)
  54. end
  55. end
  56. num = num + 1
  57. end
  58. if Possible == true then
  59. table.insert(AllIDs, ID)
  60. wait()
  61. pcall(function()
  62. wait()
  63. game:GetService("TeleportService"):TeleportToPlaceInstance(PlaceID, ID, game.Players.LocalPlayer)
  64. end)
  65. wait(4)
  66. end
  67. end
  68. end
  69. end
  70.  
  71. function Teleport()
  72. while wait() do
  73. pcall(function()
  74. TPReturner()
  75. if foundAnything ~= "" then
  76. TPReturner()
  77. end
  78. end)
  79. end
  80. end
  81.  
  82.  
  83.  
  84. local lobbyCount = 0
  85. local maxLobbyCount = 60
  86.  
  87. while true do
  88. local Map
  89. local IntroGui = game:GetService("Players").LocalPlayer.PlayerGui:FindFirstChild("MatchIntroGui")
  90. if IntroGui then
  91. Map = "In Game"
  92. break
  93. else
  94. Map = "In Lobby"
  95. lobbyCount = lobbyCount + 1
  96. end
  97.  
  98. print("สถานะปัจจุบัน: " .. Map)
  99. print("จำนวนครั้งที่เจอ 'In Lobby': " .. lobbyCount)
  100.  
  101.  
  102. if lobbyCount >= maxLobbyCount then
  103. print("เจอ 'In Lobby' ครบ 20 ครั้ง ออกจากลูป")
  104. Teleport()
  105. break
  106. end
  107.  
  108. wait(1)
  109. end
  110.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement