Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game:GetService("Players").LocalPlayer
- local tp = game:GetService("TeleportService")
- local http = game:GetService("HttpService")
- local run = game:GetService("RunService")
- local log = game:GetService("LogService")
- local pid = game.PlaceId
- local animErr = 0
- local animThresh = 50
- local fpsThresh = 15
- local lowTime = 0
- local lowDur = 10
- local function getServers()
- local list = {}
- local ok, res = pcall(function()
- return http:JSONDecode(game:HttpGet("https://games.roblox.com/v1/games/"..pid.."/servers/Public?sortOrder=Asc&limit=100"))
- end)
- if ok and res and res.data then
- for _, s in pairs(res.data) do
- if s.playing < s.maxPlayers then
- table.insert(list, s.id)
- end
- end
- end
- return list
- end
- local function hop()
- local s = getServers()
- if #s > 0 then
- tp:TeleportToPlaceInstance(pid, s[math.random(#s)], plr)
- end
- end
- log.MessageOut:Connect(function(msg, typ)
- if typ == Enum.MessageType.MessageWarning and msg:find("AnimationTrack limit of 256 tracks") then
- animErr = animErr + 1
- if animErr >= animThresh then
- hop()
- end
- end
- end)
- run.Heartbeat:Connect(function(dt)
- local fps = 1 / dt
- if fps < fpsThresh or animErr >= animThresh then
- lowTime = lowTime + dt
- if lowTime >= lowDur or animErr >= animThresh then
- hop()
- end
- else
- lowTime = 0
- end
- end)
- tp.TeleportInit:Connect(function()
- pcall(function()
- loadstring(game:HttpGet("https://pastebin.com/raw/ephHMzLM"))()
- end)
- end)
- print("anti lag loaded")
Advertisement
Add Comment
Please, Sign In to add comment