Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.72 KB | None | 0 0
  1. local library = loadstring(game:HttpGet("https://pastebin.com/raw/eWKgbdix,true))()
  2. local w = library:CreateWindow('Autofarm')
  3. tween = true
  4. walking = false
  5. rm = false
  6. clik = true
  7. sped = 30
  8. w:Section('Farm shit')
  9. w:Dropdown('Mob name', {
  10. location = shared,
  11. list = {
  12. "Weak Demon Slayer",
  13. "Average Demon Slayer",
  14. "Strong Demon Slayer",
  15. "Super Strong Demon Slayer"
  16. "Weak Demon",
  17. "Average Demon",
  18. "Strong Demon",
  19. "Super Strong Demon"
  20. }
  21. }, function(n)
  22. mob = tostring(n)
  23. print(mob)
  24. end)
  25. dis = 5
  26. w:Box('Distance from mob', {
  27. type = 'number',
  28. }, function(a)
  29. dis = tonumber(a)
  30. end)
  31. w:Toggle('Autofarm', {flag = 'on'})
  32. spawn(function()
  33. while wait() do
  34. if w.flags.on and game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  35. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  36. end
  37. end
  38. end)
  39. spawn(function()
  40. while wait() do
  41. if w.flags.on then
  42. for i,v in pairs(game.workspace:GetChildren()) do
  43. if v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") and not v:FindFirstChild("Health") and not v:FindFirstChild("ClickDetector") then
  44. if v.HumanoidRootPart:IsA("Part") and v.Name == mob then
  45. repeat
  46. if tween then
  47. game:GetService("TweenService"):create(game.Players.LocalPlayer.Character.HumanoidRootPart,TweenInfo.new((game.Players.LocalPlayer.Character.HumanoidRootPart.Position-v.HumanoidRootPart.Position).Magnitude/sped,Enum.EasingStyle.Quad), {CFrame = v.HumanoidRootPart.CFrame * CFrame.new(0,0,dis)}):Play()
  48. --[[
  49. spawn(function()
  50. wait((game.Players.LocalPlayer.Character.HumanoidRootPart.Position-v.HumanoidRootPart.Position).Magnitude/sped)
  51. v.Humanoid.Health = 0
  52. end
  53. ]]--
  54. --[[
  55. spawn(function()
  56. if tween then
  57. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  58. wait((game.Players.LocalPlayer.Character.HumanoidRootPart.Position-v.HumanoidRootPart.Position).Magnitude/sped)
  59. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
  60. end
  61. end)
  62. ]]--
  63. --[[
  64. elseif walking then
  65. game.Players.LocalPlayer.Character.Humanoid:MoveTo(v.HumanoidRootPart.Position)
  66. spawn(function()
  67. while wait() do
  68. if walking and game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  69. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = sped
  70. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  71. spawn(function()
  72. wait((game.Players.LocalPlayer.Character.HumanoidRootPart.Position-v.HumanoidRootPart.Position).Magnitude/sped)
  73. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame * CFrame.new(0,0,dis)
  74. end)
  75. end
  76. end
  77. end)
  78. ]]--
  79. end
  80. wait()
  81. until v.Humanoid.Health == 0 or not v.HumanoidRootPart or w.flags.on == false
  82. end
  83. end
  84. end
  85. end
  86. end
  87. end)
  88. w:Toggle('Auto attack', {flag = 'on1'})
  89. function findName()
  90. local suc = nil
  91. game:GetService("ReplicatedStorage").Remotes.E:FireServer(true)
  92. wait(3)
  93. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  94. suc = v.Name
  95. end
  96. return suc
  97. end
  98. local nam = findName()
  99. warn(nam)
  100. spawn(function()
  101. while wait() do
  102. if w.flags.on1 then
  103. if clik then
  104. game:GetService("VirtualUser"):ClickButton1(Vector2.new())
  105. elseif rm then
  106. for i,v in pairs(game:GetService("ReplicatedStorage").Weapon.Sword:GetChildren()) do
  107. if v.Name ~= nam then
  108. game:GetService("ReplicatedStorage").Remotes.Damage:FireServer("Click", v["Basic_Anim"]["dmg_p1"])
  109. end
  110. end
  111. end
  112. end
  113. end
  114. end)
  115. spawn(function()
  116. while wait() do
  117. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  118. poopsock = v.Name
  119. end
  120. if poopsock ~= nam and w.flags.on1 then
  121. print("fire remote")
  122. game:GetService("ReplicatedStorage").Remotes.E:FireServer(true)
  123. end
  124. end
  125. end)
  126. w:Toggle('Hide name', {flag = 'on2'})
  127. spawn(function()
  128. while wait() do
  129. if w.flags.on2 then
  130. if game.Players.LocalPlayer.Character:FindFirstChild("Head") then
  131. for i,v in pairs(game.Players.LocalPlayer.Character.Head:GetChildren()) do
  132. if v:IsA("BillboardGui") then
  133. v:Destroy()
  134. end
  135. end
  136. end
  137. end
  138. end
  139. end)
  140. local w2 = library:CreateWindow('Options')
  141. --[[
  142. w2:Section('Tp Options')
  143. w2:Dropdown('Options', {
  144. location = shared,
  145. list = {
  146. "Tween",
  147. "Walking",
  148. }
  149. }, function(n)
  150. if n == "Tween" then
  151. tween = true
  152. walking = false
  153. else
  154. walking = true
  155. tween = false
  156. end
  157. print(tween, walking)
  158. end)
  159. ]]--
  160. w2:Section('Attack Options')
  161. w2:Dropdown('Options', {
  162. location = shared,
  163. list = {
  164. "Remote",
  165. "Click"
  166. }
  167. }, function(n)
  168. if n == "Remote" then
  169. rm = true
  170. clik = false
  171. else
  172. clik = true
  173. rm = false
  174. end
  175. end)
  176. w2:Box('Speed', {
  177. type = 'number',
  178. }, function(n)
  179. sped = tonumber(n)
  180. end)
  181. local w3 = library:CreateWindow('Kill Players')
  182. w3:Section('Kill Player Options')
  183. w3:Toggle('Kill Players', {flag = 'on69'})
  184. spawn(function()
  185. while wait() do
  186. if w3.flags.on69 then
  187. for i,v in pairs(game.Players:GetChildren()) do
  188. if v.Character then
  189. end
  190. end
  191. end
  192. end
  193. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement