Advertisement
RDMScript

Untitled

Jan 1st, 2020
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. _G.farm = true
  2. noclip = true
  3. game:GetService('RunService').Stepped:connect(function()
  4. if noclip then
  5. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  6. end
  7. end)
  8. plr = game.Players.LocalPlayer
  9. mouse = plr:GetMouse()
  10. mouse.KeyDown:connect(function(key)
  11.  
  12. if key == "o" then
  13. noclip = not noclip
  14. game.Players.LocalPlayer.Character.Humanoid:ChangeState(250)
  15. end
  16. end)
  17. while _G.farm do
  18. wait(0)
  19.  
  20. for i,v in pairs(game.workspace.Enemies:GetChildren()) do
  21. if v.Name == "Bandit [Lv. 5]" then -- Mob Name
  22. if v.Humanoid.Health > 0 then
  23. repeat wait()
  24. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame * CFrame.new(0, 20, 0)
  25. until v.Humanoid.Health == 0 or _G.farm == false
  26. end
  27. end
  28. end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement