Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if isfolder('Luarmor') then delfolder('Luarmor') end
- getgenv().Configuration = {
- ['Enabled'] = true,
- ['Enabled Challenge'] = true,
- ['PC Name'] = 'Xenon Hub 1',
- ['Delay'] = 10, -- Seconds
- ['Leave Delay'] = 5,
- ['Leave At Wave'] = 31,
- ['Leave Method'] = 1, -- 1 = Sell, 2 = Leave
- };
- getgenv().key = '171840436766'
- loadstring(game:HttpGet('https://raw.githubusercontent.com/Xenon-Trash/Loader/main/Loader.lua'))()
- repeat task.wait() until game:IsLoaded()
- getgenv().Hermanos_Settings = {
- ['key'] = 'bafd2512-771b-4091-b5fe-069e746eaf1f',
- ['PC'] = 'SandBox',
- ['mode'] = 'Website', --- Duo, Description, Website
- }
- task.spawn(function() loadstring(game:HttpGet('https://raw.githubusercontent.com/hermanos-dev/hermanos-script/main/ad-main.lua'))() end)
- local PlaceID = game.PlaceId
- local AllIDs = {}
- local foundAnything = ""
- local actualHour = os.date("!*t").hour
- local Deleted = false
- function TPReturner()
- local Site;
- if foundAnything == "" then
- Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100'))
- else
- Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100&cursor=' .. foundAnything))
- end
- local ID = ""
- if Site.nextPageCursor and Site.nextPageCursor ~= "null" and Site.nextPageCursor ~= nil then
- foundAnything = Site.nextPageCursor
- end
- local num = 0;
- for i,v in pairs(Site.data) do
- local Possible = true
- ID = tostring(v.id)
- if tonumber(v.maxPlayers) > tonumber(v.playing) then
- for _,Existing in pairs(AllIDs) do
- if num ~= 0 then
- if ID == tostring(Existing) then
- Possible = false
- end
- else
- if tonumber(actualHour) ~= tonumber(Existing) then
- local delFile = pcall(function()
- AllIDs = {}
- table.insert(AllIDs, actualHour)
- end)
- end
- end
- num = num + 1
- end
- if Possible == true then
- table.insert(AllIDs, ID)
- wait()
- pcall(function()
- wait()
- game:GetService("TeleportService"):TeleportToPlaceInstance(PlaceID, ID, game.Players.LocalPlayer)
- end)
- wait(4)
- end
- end
- end
- end
- function Teleport()
- while wait() do
- pcall(function()
- TPReturner()
- if foundAnything ~= "" then
- TPReturner()
- end
- end)
- end
- end
- local lobbyCount = 0
- local maxLobbyCount = 60
- while true do
- local Map
- local IntroGui = game:GetService("Players").LocalPlayer.PlayerGui:FindFirstChild("MatchIntroGui")
- if IntroGui then
- Map = "In Game"
- break
- else
- Map = "In Lobby"
- lobbyCount = lobbyCount + 1
- end
- print("สถานะปัจจุบัน: " .. Map)
- print("จำนวนครั้งที่เจอ 'In Lobby': " .. lobbyCount)
- if lobbyCount >= maxLobbyCount then
- print("เจอ 'In Lobby' ครบ 20 ครั้ง ออกจากลูป")
- Teleport()
- break
- end
- wait(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement