Advertisement
SirMeme

autofarm

Apr 13th, 2019
9,840
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. _G.attack = true
  2. --_G.attack = false
  3. local NPC = "Sand Crab"
  4.  
  5. local Players = game:GetService("Players")
  6. local me = game.Players.LocalPlayer
  7. while _G.attack do
  8. for _,v in pairs(game.Workspace.Live:GetDescendants()) do
  9. if string.find(v.Name, NPC) and v:FindFirstChild("HumanoidRootPart") then
  10. me.Backpack.Input:FireServer("m1")
  11. me.Backpack.Input:FireServer("rnu")
  12. me.Backpack.Input:FireServer("hit", { v })
  13. me.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame+Vector3.new(0, 5, 0)
  14. end
  15. end
  16. wait()
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement