Advertisement
MegumuSenpai

One Punch Man: Evolved - AutoFarm

Jun 15th, 2019
4,615
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. --[[
  2. Made by Megumu#8008
  3. <3
  4. Open source so you can edit and improve it cause I'm too lazy to do it myself
  5. ]]
  6.  
  7. --Settings
  8. _G.Enabled = true --Toggle on/off
  9. _G.AutoStrength = true --Automatically spends points on Strength
  10. _G.Offset = 4 --How far behind you want to teleport
  11. _G.Time = 8 --Timer before it switches to another target
  12. _G.NPCs = { --Target list
  13. ["Sea Monster"] = false,
  14. ["Armored Gorilla"] = false,
  15. ["Thug"] = true,
  16. ["Evolved Thug"] = false,
  17. }
  18.  
  19.  
  20. --Variables
  21. local plr = game.Players.LocalPlayer
  22. local folder = plr.PlayerFolder
  23. local fix = folder.RegenEnabledD
  24.  
  25. --Spent Points
  26. function Point()
  27. if _G.AutoStrength == true then
  28. game.ReplicatedStorage.RemoteEvents["Add+"]:InvokeServer(folder, folder.Strength, folder.Endurance, folder.Energy, folder.Agility, folder.Strength)
  29. wait()
  30. end
  31. end
  32.  
  33. --Attack
  34. function Attack()
  35. game.ReplicatedStorage.RemoteEvents.GroundSmash:FireServer(nil, nil, nil, nil, nil, nil, false, "SuperHuman")
  36. game.ReplicatedStorage.RemoteEvents.GroundSmash:FireServer(nil, nil, nil, nil, nil, nil, nil, false, "SuperHuman")
  37. end
  38.  
  39. --AutoFarm
  40. while _G.Enabled == true do
  41. local children = workspace.NPCS:GetChildren()
  42. local plr = game.Players.LocalPlayer
  43. for i, child in ipairs(children) do
  44. if child:FindFirstChild("Head") and _G.NPCs[child.Head.PlayerBillBoard.Main.PName.Text] and child:FindFirstChild("SpawnProtection") and child.SpawnProtection.Value == false then
  45. local i = _G.Time*30
  46. if child:FindFirstChild("Humanoid") and child:FindFirstChild("HumanoidRootPart") then
  47. health = child.Humanoid.Health
  48. while health > 0 and i > 1 and _G.Enabled == true do
  49. if plr.Character then
  50. plr.Character.Name = "TheLoneDev"
  51. plr.Character:FindFirstChild("HumanoidRootPart").CFrame = child:FindFirstChild("HumanoidRootPart").CFrame * CFrame.new(Vector3.new(0, 0, _G.Offset))
  52. wait()
  53. Attack()
  54. Point()
  55. i = i - 1
  56. if child:FindFirstChild("Humanoid") then
  57. health = child.Humanoid.Health
  58. wait()
  59. end
  60. end
  61. end
  62. end
  63. end
  64. end
  65. wait()
  66. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement