Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. --AUTO FARM
  2. _G.StopFarming = false
  3. _G.SwordName = "Katana"
  4.  
  5. function Slash()
  6. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  7. if v.Name == _G.SwordName and v:IsA("Tool") then
  8. require(v.Data).Cooldown = {Z = 0, X = 0}
  9. v.Parent = game.Players.LocalPlayer.Character
  10. end
  11. end
  12. wait()
  13. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  14. if v.Name == _G.SwordName and v:IsA("Tool") then
  15. require(v.Data).Cooldown = {Z = 0, X = 0}
  16. mouse1click()
  17. end
  18. end
  19. end
  20. repeat wait()
  21. local a = game.Workspace.Enemies:GetChildren()
  22. for i=1,#a do
  23. if a[i]:FindFirstChild("HumanoidRootPart") and a[i]:FindFirstChild("Humanoid") and a[i].Humanoid.Health > 0 then
  24. local Nilly = false
  25. repeat wait()
  26. if Nilly == false and _G.StopFarming == false then
  27. if a[i] and a[i]:FindFirstChild("HumanoidRootPart") and a[i]:FindFirstChild("Humanoid") and a[i].Humanoid.Health > 0 then
  28. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = a[i].HumanoidRootPart.CFrame + a[i].HumanoidRootPart.CFrame.lookVector / 2.3
  29. Slash()
  30. else
  31. Nilly = true
  32. end
  33. end
  34. until Nilly == true or _G.StopFarming == true
  35. end
  36. end
  37. until _G.StopFarming == true
  38.  
  39.  
  40. --CHEST FARM
  41. local OriginalPos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  42. local a = game.Workspace:GetChildren()
  43. for i=1,#a do
  44. if a[i].Name:lower():match("chest") then
  45. b = false
  46. repeat wait()
  47. if a[i].Parent~=game.Workspace then
  48. b = true
  49. else
  50. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = a[i].CFrame
  51. end
  52. until b == true
  53. end
  54. end
  55. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = OriginalPos
  56.  
  57.  
  58. --FRUITTP
  59. local a = game.Players.LocalPlayer.Character.HumanoidRootPart
  60. local b = a.CFrame
  61. for i,v in pairs(game.Workspace["_WorldOrigin"]:GetDescendants()) do
  62. if v.Name == "Fruit" and v.Parent:IsA("Model") and v.Parent.Name == "Model" then
  63. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.CFrame
  64. wait(0.1)
  65. end
  66. end
  67. a.CFrame = b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement