Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Farm = {}
- local Players = game:GetService("Players")
- local Player = Players.LocalPlayer
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Profile = ReplicatedStorage.Profiles[Player.Name]
- local UserInputService = game:GetService("UserInputService")
- local RunService = game:GetService("RunService")
- local Mobs = game.Workspace.Mobs
- local LastShield = tick()
- local Enabled = true
- function Farm:Start()
- printoutput("Starting farm...")
- Input.KeyPress(0x31)
- UserInputService.InputBegan:Connect(function(Input, GPE)
- if not GPE then
- if Input.KeyCode == Enum.KeyCode.L then
- Enabled = not Enabled
- print("Toggle " ..(Enabled and "ON" or "OFF"))
- end
- end
- end)
- Player.CharacterAdded:Connect(function(Character)
- if Enabled then
- wait(0.1)
- Input.KeyPress(0x31)
- end
- end)
- Profile.Inventory.ChildAdded:Connect(function(Item)
- printoutput("Obtained " ..Item.Name)
- end)
- while true do
- wait()
- if Enabled then
- Input.LeftClick()
- if Player.Character then
- if Player.Character.PrimaryPart then
- local Entity = Player.Character:WaitForChild("Entity")
- local Stamina = Entity:WaitForChild("Stamina")
- local Humanoid = Player.Character:WaitForChild("Humanoid")
- Humanoid:ChangeState(11)
- local Boss = Mobs:FindFirstChild("Grim the Overseer")
- if Boss then
- if Boss.PrimaryPart then
- if Stamina.Value == 100 then
- Input.KeyPress(0x31)
- end
- Player.Character:SetPrimaryPartCFrame(Mobs:FindFirstChild("Grim the Overseer"):GetPrimaryPartCFrame() * CFrame.new(0, 9.5, 3.5))
- end
- end
- end
- end
- end
- end
- end
- Farm:Start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement