kipr987

Auto Farm Spider

Jul 28th, 2023 (edited)
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.33 KB | None | 0 0
  1. -- Spider
  2. task.wait(5)
  3. local function farm()
  4. -- Bunker
  5. print("Bunker")
  6. if game:GetService("Workspace")["Map01_Cabin"].DockGate.DockDoorSystem.Indicators.IndicatorBunker.State.Value == false then
  7. repeat
  8. wait()
  9. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace")["Map01_Cabin"].BunkerUnderground.LeverSwitch.Trigger.CFrame
  10. local args = {
  11.     [1] = "AttemptTriggerMapEvent",
  12.     [2] = workspace:WaitForChild("Map01_Cabin"):WaitForChild("BunkerUnderground"):WaitForChild("LeverSwitch"):WaitForChild("Trigger")
  13. }
  14.  
  15. game:GetService("ReplicatedStorage"):WaitForChild("modules"):WaitForChild("up"):WaitForChild("Network"):WaitForChild("RemoteEvent"):FireServer(unpack(args))
  16.  
  17. until game:GetService("Workspace")["Map01_Cabin"].DockGate.DockDoorSystem.Indicators.IndicatorBunker.State.Value == true
  18. end
  19.  
  20. -- Battery
  21. print("Battery")
  22. if game:GetService("Workspace")["Map01_Cabin"].DockGate.DockDoorSystem.Indicators.IndicatorShed.State.Value == false then
  23. repeat
  24. wait()
  25. if game:GetService("Workspace")["Map01_Cabin"].Shed.BatteryLever.BatteryHolder.Powered.Value == true then
  26. break
  27. end
  28. until game:GetService("Workspace").Items:FindFirstChild("Battery")
  29. repeat
  30. wait()
  31. if not game:GetService("Workspace").Items:FindFirstChild("Battery") then
  32. break
  33. end
  34. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").Items:FindFirstChild("Battery").Hitbox.CFrame
  35. local args = {
  36.     [1] = "AttemptSwapItems",
  37.     [2] = workspace:WaitForChild("Items"):WaitForChild("Battery"):WaitForChild("Hitbox")
  38. }
  39.  
  40. game:GetService("ReplicatedStorage"):WaitForChild("modules"):WaitForChild("up"):WaitForChild("Network"):WaitForChild("RemoteFunction"):InvokeServer(unpack(args))
  41.  
  42. until game.Players.LocalPlayer.Backpack:FindFirstChild("Battery")
  43. repeat
  44. wait()
  45. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace")["Map01_Cabin"].Shed.BatteryLever.BatteryHolder.Trigger.CFrame
  46. local args = {
  47.     [1] = "AttemptTriggerMapEvent",
  48.     [2] = workspace:WaitForChild("Map01_Cabin"):WaitForChild("Shed"):WaitForChild("BatteryLever"):WaitForChild("BatteryHolder"):WaitForChild("Trigger")
  49. }
  50.  
  51. game:GetService("ReplicatedStorage"):WaitForChild("modules"):WaitForChild("up"):WaitForChild("Network"):WaitForChild("RemoteEvent"):FireServer(unpack(args))
  52.  
  53. until game:GetService("Workspace")["Map01_Cabin"].Shed.BatteryLever.BatteryHolder.Powered.Value == true
  54. repeat
  55. wait()
  56. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace")["Map01_Cabin"].Shed.BatteryLever.PoweredLeverSwitch.Trigger.CFrame
  57. local args = {
  58.     [1] = "AttemptTriggerMapEvent",
  59.     [2] = workspace:WaitForChild("Map01_Cabin"):WaitForChild("Shed"):WaitForChild("BatteryLever"):WaitForChild("PoweredLeverSwitch"):WaitForChild("Trigger")
  60. }
  61.  
  62. game:GetService("ReplicatedStorage"):WaitForChild("modules"):WaitForChild("up"):WaitForChild("Network"):WaitForChild("RemoteEvent"):FireServer(unpack(args))
  63.  
  64. until game:GetService("Workspace")["Map01_Cabin"].DockGate.DockDoorSystem.Indicators.IndicatorShed.State.Value == true
  65. end
  66.  
  67. -- Purple Key
  68. print("Purple Key")
  69. if game:GetService("Workspace")["Map01_Cabin"].DockGate.DockDoorSystem.DockDoor:FindFirstChild("Lock") then
  70. repeat
  71. wait()
  72. if not game:GetService("Workspace")["Map01_Cabin"].DockGate.DockDoorSystem.DockDoor:FindFirstChild("Lock") then
  73. break
  74. end
  75. until game:GetService("Workspace").Items:FindFirstChild("Purple Key")
  76. if game:GetService("Workspace")["Map01_Cabin"].DockGate.DockDoorSystem.DockDoor:FindFirstChild("Lock") then
  77. repeat
  78. wait()
  79. if not game:GetService("Workspace").Items:FindFirstChild("Purple Key"):FindFirstChild("Hitbox") then
  80. break
  81. end
  82. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").Items:FindFirstChild("Purple Key").Hitbox.CFrame
  83. local args = {
  84.     [1] = "AttemptSwapItems",
  85.     [2] = workspace:WaitForChild("Items"):WaitForChild("Purple Key"):WaitForChild("Hitbox")
  86. }
  87.  
  88. game:GetService("ReplicatedStorage"):WaitForChild("modules"):WaitForChild("up"):WaitForChild("Network"):WaitForChild("RemoteFunction"):InvokeServer(unpack(args))
  89.  
  90. until game.Players.LocalPlayer.Backpack:FindFirstChild("Purple Key")
  91. end
  92. repeat
  93. wait()
  94. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace")["Map01_Cabin"].DockGate.DockDoorSystem.DockDoor.HumanoidRootPart.CFrame + Vector3.new(0,-3,0)
  95. local args = {
  96.     [1] = "AttemptToggleDoor",
  97.     [2] = workspace:WaitForChild("Map01_Cabin"):WaitForChild("DockGate"):WaitForChild("DockDoorSystem"):WaitForChild("DockDoor"),
  98.     [3] = false
  99. }
  100.  
  101. game:GetService("ReplicatedStorage"):WaitForChild("modules"):WaitForChild("up"):WaitForChild("Network"):WaitForChild("RemoteEvent"):FireServer(unpack(args))
  102.  
  103. until not game:GetService("Workspace")["Map01_Cabin"].DockGate.DockDoorSystem.DockDoor:FindFirstChild("Lock")
  104. end
  105. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace")["Map01_Cabin"].DockGate.DockDoorSystem.DockDoor.HumanoidRootPart.CFrame + Vector3.new(0,-3,0)
  106. local start = tick()
  107. repeat
  108. wait()
  109. local End = tick()
  110. until End - start >= 3
  111. game:GetService("TeleportService"):Teleport(5118969548, game.Players.LocalPlayer)
  112. end
  113.  
  114.  
  115. local start = tick()
  116. repeat
  117. wait()
  118. local End = tick()
  119. until End - start >= 1
  120. local start = tick()
  121. repeat
  122. wait()
  123. local End = tick()
  124. until End - start >= 2
  125. if game:GetService("Players").LocalPlayer.PlayerGui.GUI.Logo.Visible == false then
  126. repeat wait() until game:GetService("Players").LocalPlayer.PlayerGui.GUI.Timer.Visible == true
  127. farm()
  128. else
  129. local Player = game:GetService"Players".LocalPlayer    
  130. local Http = game:GetService("HttpService")
  131. local TPS = game:GetService("TeleportService")
  132. local Api = "https://games.roblox.com/v1/games/"
  133.  
  134. local _place,_id = game.PlaceId, game.JobId
  135. -- Asc for lowest player count, Desc for highest player count
  136. local _servers = Api.._place.."/servers/Public?sortOrder=Asc&limit=10"
  137. function ListServers(cursor)
  138.    local Raw = game:HttpGet(_servers .. ((cursor and "&cursor="..cursor) or ""))
  139.    return Http:JSONDecode(Raw)
  140. end
  141.  
  142. time_to_wait = 1 --seconds
  143.  
  144. -- choose a random server and join every 2 minutes
  145. while wait(time_to_wait) do
  146.    --freeze player before teleporting to prevent synapse crash?
  147.    Player.Character.HumanoidRootPart.Anchored = true
  148.    local Servers = ListServers()
  149.    local Server = Servers.data[#Servers.data]
  150.    TPS:TeleportToPlaceInstance(_place, Server.id, Player)
  151. end
  152. end
  153. task.wait(5)
  154. local Player = game:GetService"Players".LocalPlayer    
  155. local Http = game:GetService("HttpService")
  156. local TPS = game:GetService("TeleportService")
  157. local Api = "https://games.roblox.com/v1/games/"
  158.  
  159. local _place,_id = 9780994092, game.JobId
  160. -- Asc for lowest player count, Desc for highest player count
  161. local _servers = Api.._place.."/servers/Public?sortOrder=Asc&limit=10"
  162. function ListServers(cursor)
  163.    local Raw = game:HttpGet(_servers .. ((cursor and "&cursor="..cursor) or ""))
  164.    return Http:JSONDecode(Raw)
  165. end
  166.  
  167. time_to_wait = 1 --seconds
  168.  
  169. -- choose a random server and join every 2 minutes
  170. while wait(time_to_wait) do
  171.    --freeze player before teleporting to prevent synapse crash?
  172.    Player.Character.HumanoidRootPart.Anchored = true
  173.    local Servers = ListServers()
  174.    local Server = Servers.data[#Servers.data]
  175.    TPS:TeleportToPlaceInstance(_place, Server.id, Player)
  176. end
Tags: Auto farm
Advertisement
Add Comment
Please, Sign In to add comment