Maxdace66

[LUA] AutoFarm Roblox

Apr 9th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. local workspace = game:GetService("Workspace")
  2. local players = game:GetService("Players")
  3. local lp = players.LocalPlayer
  4. local character = lp.Character
  5. local enemies = {}
  6. _G.Farm = true
  7. _G.Find = false
  8.  
  9. local function farm()
  10. for i, k in pairs(workspace.Live:GetChildren()) do
  11. local strennemies = k.Name
  12. strennemies = strennemies:lower()
  13. if strennemies:find("snake l") then
  14. if k:FindFirstChild("Humanoid") then
  15. if k.Humanoid.Health ~= 0 and _G.Find == false then
  16. local New_CFrame = CFrame.new(k.HumanoidRootPart.CFrame.Position)
  17.  
  18. local ts = game:GetService("TweenService")
  19. local uis = game:GetService("UserInputService")
  20. local char = game.Players.LocalPlayer.Character
  21.  
  22. local part = char.HumanoidRootPart
  23. local ti = TweenInfo.new(1, Enum.EasingStyle.Linear)
  24. local tp = {CFrame = New_CFrame}
  25.  
  26. ts:Create(part, ti, tp):Play()
  27. wait(1)
  28. _G.Find = true
  29. elseif k.Humanoid.Health ~= 0 and _G.Find == true then
  30. character.CFrame = CFrame.new(k.HumanoidRootPart.CFrame.Position)
  31. local A_1 =
  32. {
  33. [1] = "ml"
  34. }
  35. local A_2 = CFrame.new(-6066.57227, 18.9874878, -4477.7959, -0.542069972, -0.178259745, 0.821208596, -0, 0.977241457, 0.212129787, -0.840333402, 0.114989184, -0.529733241)
  36. local A_3 = nil -- Path contained an invalid instance
  37. local A_4 = false
  38. local Event = lp.Backpack.ServerTraits.Input
  39. Event:FireServer(A_1, A_2, A_3, A_4)
  40. else
  41. _G.Find = false
  42. k:remove()
  43. farm()
  44. end
  45. break
  46. else
  47. _G.Find = false
  48. wait()
  49. farm()
  50. end
  51. end
  52. end
  53. end
  54.  
  55. while _G.Farm do
  56. wait()
  57. farm()
  58. end
Advertisement
Add Comment
Please, Sign In to add comment