Advertisement
Guest User

Project JoJo Auto Farm

a guest
Jul 17th, 2018
8,417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. --[[
  2.  
  3.  
  4. -----------------------------
  5. Controls:
  6.  
  7. f3 to turn on
  8.  
  9. f4 to stop
  10.  
  11. f5 to save location you are in and teleport there when clicked again (I use this to tp to the shop to farm for stands)
  12.  
  13. f6 turn forget previous location
  14. -----------------------------
  15. Game:
  16. https://www.roblox.com/games/1135391284/Project-JoJo
  17.  
  18. -----------------------------
  19. Description:
  20. Autofarms all the dummys
  21. And yes, you can spam f3 if you want to level up really fast and lag the game a bit
  22.  
  23. -----------------------------
  24. Credit:
  25.  
  26. Original: @Verm brianops16
  27. -----------------------------
  28.  
  29.  
  30. --]]
  31. plr = game.Players.LocalPlayer
  32. function code()
  33. function Train()
  34. local plrN = game.Players.LocalPlayer.Name
  35. for i,v in pairs(game.Workspace:GetChildren()) do
  36. if v.Name == "Rock Dummy" or v.Name == "Metal Dummy" or v.Name == "Wood Dummy" or v.Name == "Ice Dummy" or v.Name == "Giant Dummy" and on == 1 then
  37. local Head = v.Head.CFrame
  38. local Name = v.Name
  39. local power = game.Players.LocalPlayer.Power.Value
  40. local power = power * 2
  41. wait()
  42. game.ReplicatedStorage.Logic.misc:FireServer(7, Workspace[plrN].Humanoid, 0)
  43. game.ReplicatedStorage.Logic.misc:FireServer(2, Workspace[plrN].Torso.woosh, 1)
  44. game.ReplicatedStorage.Logic.misc:FireServer(1, Workspace[plrN].Torso.woosh, 0)
  45. game.ReplicatedStorage.Logic.misc:FireServer(7, Workspace[plrN].Humanoid, 50)
  46. game.ReplicatedStorage.Logic.information:InvokeServer("Power")
  47. game.ReplicatedStorage.Logic.hitbox:InvokeServer(0, Workspace[plrN]["Right Arm"], Head, power, Workspace[plrN].Torso.voiceline, Workspace[Name].Humanoid)
  48. end
  49. end
  50. end
  51.  
  52. function Tele()
  53. for i,v in pairs(game.Workspace:GetChildren()) do
  54. if v.ClassName == "Tool" then
  55. v.Handle.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  56. end
  57. end
  58. end
  59.  
  60. while on == 1 do
  61. if on == 1 then
  62. Tele()
  63. Train()
  64. end
  65. end
  66. end
  67. a = 0
  68. on = 1
  69. local UIS = game:GetService("UserInputService")
  70. UIS.InputBegan:connect(function(Input)
  71. local KeyCode = Input.KeyCode
  72. if KeyCode == Enum.KeyCode.F3 then
  73. on = 1
  74. wait(1)
  75. while on == 1 do
  76. game:GetService('RunService').Stepped:wait(0)
  77. code()
  78. end
  79. end
  80. end)
  81. UIS.InputBegan:connect(function(Input)
  82. local KeyCode = Input.KeyCode
  83. if KeyCode == Enum.KeyCode.F4 then
  84. on = 0
  85. end
  86. end)
  87. UIS.InputBegan:connect(function(Input)
  88. local KeyCode = Input.KeyCode
  89. if KeyCode == Enum.KeyCode.F5 then
  90. if a == 0 then
  91. OldPosition = plr.Character.HumanoidRootPart.CFrame
  92. plr.Character.HumanoidRootPart.CFrame = OldPosition
  93. a = 1
  94. elseif a == 1 then
  95. plr.Character.HumanoidRootPart.CFrame = OldPosition
  96. end
  97. end
  98. end)
  99. UIS.InputBegan:connect(function(Input)
  100. local KeyCode = Input.KeyCode
  101. if KeyCode == Enum.KeyCode.F6 then
  102. if a == 1 then
  103. a = 0
  104. end
  105. end
  106. end)
  107. --Description and controls at the top
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement