Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local maxhp = 10000000 --change to max hp to farm mobs
- game:GetService('RunService').Stepped:connect(function()
- game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid"):ChangeState(11)
- end)
- for g,c in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if c:IsA("LocalScript") then
- c:Destroy()
- end
- end
- while wait() do
- for i,v in pairs(game:GetService("Workspace").NPCs:GetChildren()) do
- if v.Humanoid.Health < maxhp and v:FindFirstChild("HumanoidRootPart") then
- for d,a in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if a.ClassName == "Tool" then
- repeat
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.HumanoidRootPart.Position + Vector3.new(0, -5, 0), v.HumanoidRootPart.Position)
- wait()
- a:Activate()
- until v.Humanoid.Health == 0
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement