Advertisement
DontDoItIDareU

slicing sim

Dec 7th, 2019
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. local maxhp = 10000000 --change to max hp to farm mobs
  2. game:GetService('RunService').Stepped:connect(function()
  3. game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid"):ChangeState(11)
  4. end)
  5. for g,c in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  6. if c:IsA("LocalScript") then
  7. c:Destroy()
  8. end
  9. end
  10. while wait() do
  11. for i,v in pairs(game:GetService("Workspace").NPCs:GetChildren()) do
  12. if v.Humanoid.Health < maxhp and v:FindFirstChild("HumanoidRootPart") then
  13. for d,a in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  14. if a.ClassName == "Tool" then
  15. repeat
  16. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.HumanoidRootPart.Position + Vector3.new(0, -5, 0), v.HumanoidRootPart.Position)
  17. wait()
  18. a:Activate()
  19. until v.Humanoid.Health == 0
  20. end
  21. end
  22. end
  23. end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement