Advertisement
zqozr

BEST SERVERHOPSCRIPT FARM COSMIC

Sep 6th, 2022 (edited)
1,331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.76 KB | None | 0 0
  1. local self
  2. self = function()
  3.     repeat wait() until game:IsLoaded()
  4.     task.wait(1)
  5. --[[
  6.  
  7. if _G.didalr==true then if workspace.Spawns.CosmicHumanMonster:FindFirstChildOfClass("Model") and workspace.Spawns.CosmicHumanMonster:FindFirstChildOfClass("Model").Humanoid.Health>0 then return else _G.didalr=false end end
  8. _G.didalr=true
  9. ]]
  10.     if workspace:WaitForChild("Spawns").CosmicHumanMonster:FindFirstChildOfClass('Model') and workspace.Spawns.CosmicHumanMonster:FindFirstChildOfClass("Model").Humanoid.Health>0  then
  11.         print('cosmic exists')
  12.         for i = 1, 20, 1 do
  13.             local char = game:GetService("Players").LocalPlayer.Character or game:GetService("Players").LocalPlayer.CharacterAdded:Wait()
  14.             char:WaitForChild("HumanoidRootPart").CFrame = CFrame.new(-1636.28589, 891.273682, 301.179108, 0.121827118, 4.27490612e-08, 0.992551327, -6.35098729e-08, 1, -3.5274585e-08, -0.992551327, -5.87394098e-08, 0.121827118)
  15.             task.wait(0.15)
  16.  
  17.  
  18.  
  19.         end
  20.         local ohString11 = "GetQuest"
  21.         local ohNumber2 = 32
  22.         game:GetService("ReplicatedStorage").RemoteEvent:FireServer(ohString11, ohNumber2)
  23.         task.wait(0.25)
  24.         coroutine.resume(coroutine.create(function()
  25.             for i = 1, 20, 1 do
  26.                 task.wait(.1)
  27.                 if workspace.Spawns.CosmicHumanMonster:FindFirstChildOfClass("Model") then
  28.                     local ohString1 = "CosmicAttack1"
  29.                     local ohVector32 = workspace.Spawns.CosmicHumanMonster:FindFirstChildOfClass("Model"):WaitForChild("HumanoidRootPart").Position
  30.                     game:GetService("ReplicatedStorage").RemoteEvent:FireServer(ohString1, ohVector32)
  31.                 else
  32.                     break
  33.                 end
  34.             end
  35.         end))
  36.  
  37.  
  38.         task.wait(0.5)
  39.         self()
  40.     else
  41.         print('cosmic doesnt exist')
  42.         local TeleportService = game:GetService('TeleportService')
  43.         local HttpService = game:GetService('HttpService')
  44.         local httprequest = http.request or request
  45.         local Players = game:GetService("Players")
  46.         if httprequest then
  47.             local servers = {}
  48.             local req = httprequest({Url = string.format('https://games.roblox.com/v1/games/%s/servers/Public?sortOrder=Asc&limit=100', game.PlaceId)})
  49.             local body = HttpService:JSONDecode(req.Body)
  50.             if body and body.data then
  51.                 for i, v in next, body.data do
  52.                     if type(v) == 'table' and tonumber(v.playing) and tonumber(v.maxPlayers) and v.playing>3 and v.playing < v.maxPlayers and v.id ~= game.JobId then
  53.                         table.insert(servers, 1, v.id)
  54.                     end
  55.                 end
  56.             end
  57.             local str = "loadstring(game:HttpGet('https://pastebin.com/raw/VsyrLvzP', true))()"
  58.             syn.queue_on_teleport(str)
  59.             if #servers > 0 then
  60.                 TeleportService:TeleportToPlaceInstance(game.PlaceId, servers[math.random(1, #servers)], Players.LocalPlayer)
  61.             else
  62.                 task.delay(3, function()
  63.                     self()
  64.                     print('Queued fail, retried')
  65.                 end)
  66.             end
  67.         end
  68.     end
  69. end
  70. self()
  71. -- syn.queue_on_teleport("self()")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement