1. local toolName = "Combat"
  2. local player = game:GetService("Players").LocalPlayer
  3. local tool = player.Character:FindFirstChild(toolName) or player.Backpack:FindFirstChild(toolName)
  4. _G.farm = true
  5. while _G.farm do wait()
  6. if tool then
  7. player.Character.Humanoid:EquipTool(tool)
  8. workspace[game:service('Players').LocalPlayer.Name].Combat.Combo.C0:FireServer(workspace[game:service('Players').LocalPlayer.Name]["Right Leg"])
  9. wait()
  10. for i,v in pairs(game.Workspace:GetDescendants()) do
  11. if string.find(v.Name, "Bandit Leader") and v:FindFirstChild("HumanoidRootPart") then
  12. v:FindFirstChild("HumanoidRootPart").Anchored = true
  13. v:FindFirstChild("HumanoidRootPart").CFrame = workspace[game:service('Players').LocalPlayer.Name].HumanoidRootPart.CFrame*CFrame.new(0,0,0)
  14. wait()
  15. game:GetService("ReplicatedStorage")["Quest Remote Events"].EnableQuest:FireServer(workspace["Quest NPCS"]["Xavier - Quest"].HumanoidRootPart.QuestActivator.Quest)
  16. end
  17. end
  18. end
  19. end