Advertisement
DuyOnline101

viciousbeeserverhop

Jan 3rd, 2023 (edited)
1,437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.34 KB | None | 0 0
  1. repeat wait() until game:IsLoaded()
  2.  
  3. local floatpad = Instance.new("Part", game:GetService("Workspace"))
  4. floatpad.CanCollide = false
  5. floatpad.Anchored = true
  6. floatpad.Transparency = 1
  7. floatpad.Name = "FloatPad"
  8.  
  9. local loadedscript = game:HttpGet("https://pastebin.com/raw/CuXgVMmE")
  10.  
  11. noclip = false
  12. local farmVici = false
  13.  
  14. local function Tween(time, pos)
  15.     noclip = true
  16.     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = pos
  17. end
  18.  
  19. local ccccount = 0
  20.  
  21. local function killViciousBeeFunc()
  22.     for _, v in pairs(workspace.Particles:GetChildren()) do
  23.         if string.find(v.Name, "Waiting Thorn") then
  24.             pcall(function()
  25.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.CFrame
  26.             end)
  27.         end
  28.     end
  29.     for _, v in pairs(workspace.Monsters:GetChildren()) do
  30.         if string.find(v.Name, "Vici") then
  31.                 ccccount = ccccount + 1
  32.                 if ccccount == 5 then
  33.                     cccccount = 0
  34.                     Tween(0.5,v.Torso.CFrame - Vector3.new(0, 10, 0))
  35.                 else
  36.                 Tween(0.5,v.Torso.CFrame + Vector3.new(0, 13, 0))
  37.                 end
  38.             vici = true
  39.         end
  40.     end
  41. end
  42.  
  43. local File = pcall(function()
  44.     AllIDs = readfile("PrevServers.txt")
  45. end)
  46. if not File then
  47.     writefile("PrevServers.txt", game.JobId)
  48. end
  49.  
  50. local Cookie = loadstring(game:HttpGet("https://pastebin.com/raw/LBctiert"))()()
  51. local actualHour = os.date("!*t").hour
  52. local Deleted = false
  53.  
  54. local function to12H(hour)
  55.     hour = hour % 24
  56.     return (hour - 1) % 12 + 1
  57. end
  58.  
  59. local function getTime()
  60.     local date = os.date("*t")
  61.     return ("%02d:%02d"):format(((date.hour % 24) - 1) % 12 + 1, date.min)
  62. end
  63.  
  64. local function AuthenticateAndReturn(url)
  65. local servers = game.HttpService:JSONDecode(syn.request({
  66.     ["Url"] = url;
  67.     Headers = {
  68.         ["content-type"] = "application/json",
  69.         ["user-agent"] = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) discord/0.0.305 Chrome/69.0.3497.128 Electron/4.0.8 Safari/537.36",
  70.         ["cookie"] = ".ROBLOSECURITY="..Cookie,
  71.     };
  72.     ["Method"] = "GET";
  73. }).Body)
  74. return servers
  75. end
  76.  
  77. print("ok1")
  78.  
  79. local previousCursor = 0
  80.  
  81. local function fetchIds()
  82.     local retur = nil
  83.     pcall(function()
  84.     retur = readfile("PrevServers.txt")
  85.     end)
  86.     return retur
  87. end
  88.  
  89. print("ok2")
  90.  
  91. local function addText(tex)
  92.     local currenttext = nil
  93.     local File = pcall(function()
  94.     currenttext = readfile("PrevServers.txt")
  95.     end)
  96.     if not File then
  97.     writefile("PrevServers.txt", tex)
  98.     else
  99.     writefile("PrevServers.txt", currenttext..tex)
  100.     end
  101. end
  102.  
  103. local hasteleportedithink = false
  104.  
  105. local function defTeleport(jobid)
  106.     local success = pcall(function()
  107.     game:GetService('TeleportService'):TeleportToPlaceInstance(game.PlaceId, jobid, game:GetService("Players").LocalPlayer)
  108.     end)
  109.     if success then hasteleportedithink = true print("Teleporting") end
  110. end
  111.  
  112. print("ok3")
  113.  
  114. local function requestTeleport(jobid)
  115.     local current = fetchIds()
  116.     if current ~= nil then
  117.         if not string.find(current,jobid) then
  118.         addText(jobid)
  119.         print(jobid)
  120.         defTeleport(jobid)
  121.         else
  122.             --already visited[?] server
  123.         end
  124.     else
  125.         addText(jobid)
  126.         defTeleport(jobid)
  127.     end
  128. end
  129.  
  130. print("ok4")
  131. print(tostring(hasteleportedithink))
  132.  
  133. spawn(function()
  134.     while wait(1) do
  135.         if hasteleportedithink == true then
  136.             wait(2)
  137.             hasteleportedithink = false
  138.         end
  139.     end
  140. end)
  141.  
  142. local processing = false
  143.  
  144. local function stawtTewepowt()
  145. while true do
  146. if not hasteleportedithink then
  147. local s,e = pcall(function()
  148. repeat
  149. processing = true
  150. local Servers = nil
  151. print("cycling")
  152. if previousCursor == 0 then
  153. Servers = AuthenticateAndReturn("https://www.roblox.com/games/getgameinstancesjson?placeId="..tostring(game.PlaceId).."&startIndex=1")
  154. else
  155. Servers = AuthenticateAndReturn("https://www.roblox.com/games/getgameinstancesjson?placeId="..tostring(game.PlaceId).."&startIndex="..tostring(previousCursor))
  156. end
  157.  
  158. repeat wait() until Servers ~= nil
  159. warn(previousCursor)
  160. previousCursor = previousCursor + math.random(200,2000)
  161. if previousCursor > 40000 then previousCursor = 1 end
  162. for i,v in pairs(Servers.Collection) do
  163.     if v.PlayersCapacity ~= "6 of 6 people max" then
  164.       requestTeleport(v.Guid)
  165.       warn("requested 2")
  166. end
  167. end
  168. wait(0.075)
  169. until hasteleportedithink == true
  170. processing = false
  171. end)
  172. if not s then warn(e) end
  173. end
  174. wait(2)
  175. end
  176. end
  177.  
  178. local function isVici()
  179.     local boo = false
  180.         for _, v in pairs(workspace.Particles:GetDescendants()) do
  181.         if string.find(v.Name, "Thorn") then
  182.             boo = true
  183.         end
  184.     end
  185.     for _, v in pairs(workspace.Monsters:GetChildren()) do
  186.         if string.find(v.Name, "Vici") then
  187.             boo = true
  188.         end
  189.     end
  190. return boo
  191. end
  192.  
  193. spawn(function()
  194. while wait(0.2) do
  195.     if farmVici then
  196.         killViciousBeeFunc()
  197.             for i=1,6 do
  198.         game:GetService("ReplicatedStorage").Events.ClaimHive:FireServer(i)
  199.     end
  200.     end
  201. end
  202. end)
  203.  
  204. local function FarmViciousBee()
  205.     local s,e = pcall(function()
  206.     local obj2tp = nil
  207.     for _, v in pairs(workspace.Particles:GetDescendants()) do
  208.         if string.find(v.Name, "Thorn") then
  209.             if v:IsA("Part") then
  210.             boo = true
  211.             end
  212.         end
  213.     end
  214.     for _, v in pairs(workspace.Monsters:GetChildren()) do
  215.         if string.find(v.Name, "Vici") then
  216.             obj2tp = v.Torso
  217.         end
  218.     end
  219.     pcall(function()
  220.     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = obj2tp.CFrame
  221.     end)
  222.     repeat farmVici = true wait(1) until isVici() == false
  223.     farmVici = false
  224.     end)
  225.     if not s then Log("/n"..e) end
  226. end
  227.  
  228. wait(0.5)
  229.  
  230. game:GetService('RunService').Heartbeat:connect(function()
  231.     if noclip then game.Players.LocalPlayer.Character.Humanoid.BodyTypeScale.Value = 0 floatpad.CanCollide = true floatpad.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X, game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y-3.75, game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z) task.wait(0)  else floatpad.CanCollide = false end
  232. end)
  233.  
  234. local function Log(Text,Color,NewLine)
  235.     if Color ~= nil then
  236.         rconsoleprint("@@"..Color.."@@")
  237.     end
  238.     if NewLine then rconsoleprint("\n") end
  239.     rconsolename("Kocmoc Serverhopper")
  240.     rconsoleprint(Text)
  241. end
  242.  
  243. local rewardsToColor = { ["Stinger"] = "LIGHT_CYAN"; ["Honey"] = "YELLOW"; ["Left"] = "RED"; }
  244.  
  245. local function generateStyle(notiText)
  246.     local color = "DARK_GRAY"
  247.     for i,v in pairs(rewardsToColor) do
  248.         if string.find(notiText,i) then color = v end
  249.     end
  250.     return color
  251. end
  252.  
  253. local done = false
  254.  
  255. game:GetService("Players").LocalPlayer.OnTeleport:Connect(function(State)
  256.     if State == Enum.TeleportState.Started then
  257.         if not done then
  258.         local s,e = pcall(function()
  259.         syn.queue_on_teleport(loadedscript) --repeat self
  260.         end)
  261.         if not s then syn.queue_on_teleport(loadedscript) end
  262.         done = true
  263.         end
  264.     end
  265. end)
  266.  
  267. local lootnum = 0
  268.  
  269. local succ,err = pcall(function()
  270. if isVici() then
  271.     repeat wait() until workspace:FindFirstChild(game:GetService("Players").LocalPlayer.Name):FindFirstChild("HumanoidRootPart")
  272.     wait(1)
  273.     Log(" ",nil,true)
  274.     Log("========= Vicious Bee Found =========","LIGHT_GREEN",true)
  275.     Log(" ",nil,true)
  276.     game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui:WaitForChild("Alerts").ChildAdded:Connect(function(i)
  277.         wait(0.5)
  278.         if string.find(i.Text,"from Vic") then
  279.             lootnum = lootnum + 1
  280.             Log(i.Text,generateStyle(i.Text),true)
  281.         end
  282.     end)
  283.     game:GetService("Players").PlayerRemoving:Connect(function(plr)
  284.         if plr.Name == game:GetService("Players").LocalPlayer.Name then
  285.             if lootnum == 0 then
  286.                 Log("Vicious Bee Despawned","RED",true)
  287.             end
  288.         end
  289.     end)
  290.     FarmViciousBee()
  291.     wait(0.5)
  292.     stawtTewepowt()
  293.     else
  294.     stawtTewepowt()
  295. end
  296. end)
  297.  
  298. if not succ then stawtTewepowt() Log("Vicious Bee Despawned","RED",true) end repeat wait() until game:IsLoaded()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement