SHARE
TWEET

[SB2] F10 Boss Auto Farm

Xzeni Jan 16th, 2019 231 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Farm = {}
  2. local Players = game:GetService("Players")
  3. local Player = Players.LocalPlayer
  4. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  5. local Profile = ReplicatedStorage.Profiles[Player.Name]
  6. local UserInputService = game:GetService("UserInputService")
  7. local RunService = game:GetService("RunService")
  8. local Mobs = game.Workspace.Mobs
  9. local LastShield = tick()
  10. local Enabled = true
  11.  
  12. function Farm:Start()
  13.     printoutput("Starting farm...")
  14.     Input.KeyPress(0x31)
  15.     UserInputService.InputBegan:Connect(function(Input, GPE)
  16.         if not GPE then
  17.             if Input.KeyCode == Enum.KeyCode.L then
  18.                 Enabled = not Enabled
  19.                 print("Toggle " ..(Enabled and "ON" or "OFF"))
  20.             end
  21.         end
  22.     end)
  23.     Player.CharacterAdded:Connect(function(Character)
  24.         if Enabled then
  25.             wait(0.1)
  26.             Input.KeyPress(0x31)
  27.         end
  28.     end)
  29.     Profile.Inventory.ChildAdded:Connect(function(Item)
  30.         printoutput("Obtained " ..Item.Name)
  31.     end)
  32.     while true do
  33.         wait()
  34.         if Enabled then
  35.             Input.LeftClick()
  36.             if Player.Character then
  37.                 if Player.Character.PrimaryPart then
  38.                     local Entity = Player.Character:WaitForChild("Entity")
  39.                     local Stamina = Entity:WaitForChild("Stamina")
  40.                     local Humanoid = Player.Character:WaitForChild("Humanoid")
  41.                     Humanoid:ChangeState(11)
  42.                     local Boss = Mobs:FindFirstChild("Grim the Overseer")
  43.                     if Boss then
  44.                         if Boss.PrimaryPart then
  45.                             if Stamina.Value == 100 then
  46.                                Input.KeyPress(0x31)
  47.                             end
  48.                             Player.Character:SetPrimaryPartCFrame(Mobs:FindFirstChild("Grim the Overseer"):GetPrimaryPartCFrame() * CFrame.new(0, 9.5, 3.5))
  49.                         end
  50.                     end
  51.                 end
  52.             end
  53.         end
  54.     end
  55. end
  56.  
  57. Farm:Start()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top