Advertisement
waiwaiLnW

Untitled

Nov 5th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.57 KB | None | 0 0
  1. local xDD = Instance.new("ScreenGui")
  2. local Dinamic = Instance.new("Frame")
  3. local Open = Instance.new("TextButton")
  4. local main = Instance.new("Frame")
  5. local autofarm = Instance.new("Frame")
  6. local xd = Instance.new("Frame")
  7. local x = Instance.new("TextButton")
  8. local labelxxl = Instance.new("TextLabel")
  9. local on = Instance.new("TextButton")
  10. local off = Instance.new("TextButton")
  11. local tp = Instance.new("TextButton")
  12. local speed = Instance.new("TextButton")
  13. local name = Instance.new("TextBox")
  14. --Properties:
  15. xDD.Name = "xDD"
  16. xDD.Parent = game.CoreGui
  17.  
  18. Dinamic.Name = "Dinamic"
  19. Dinamic.Parent = xDD
  20. Dinamic.BackgroundColor3 = Color3.new(0.27451, 0.843137, 1)
  21. Dinamic.BackgroundTransparency = 0.15000000596046
  22. Dinamic.BorderColor3 = Color3.new(1, 1, 1)
  23. Dinamic.Position = UDim2.new(0.354927003, 0, 0, 0)
  24. Dinamic.Size = UDim2.new(0, 87, 0, 31)
  25.  
  26. Open.Name = "Open"
  27. Open.Parent = Dinamic
  28. Open.BackgroundColor3 = Color3.new(0.27451, 0.843137, 1)
  29. Open.BackgroundTransparency = 0.15000000596046
  30. Open.BorderColor3 = Color3.new(1, 1, 1)
  31. Open.BorderSizePixel = 0
  32. Open.Position = UDim2.new(0.0866760463, 0, 0, 0)
  33. Open.Size = UDim2.new(0, 71, 0, 29)
  34. Open.Font = Enum.Font.Bodoni
  35. Open.Text = "Open"
  36. Open.TextColor3 = Color3.new(1, 1, 1)
  37. Open.TextSize = 17
  38.  
  39. main.Name = "main"
  40. main.Parent = xDD
  41. main.BackgroundColor3 = Color3.new(0.223529, 0.27451, 1)
  42. main.BackgroundTransparency = 0.25
  43. main.BorderSizePixel = 0
  44. main.Position = UDim2.new(0.242700726, 0, 0.382000059, 0)
  45. main.Size = UDim2.new(0, 282, 0, 132)
  46. main.Active = true
  47. main.Draggable = true
  48. main.Visible = false
  49.  
  50. autofarm.Name = "autofarm"
  51. autofarm.Parent = main
  52. autofarm.BackgroundColor3 = Color3.new(0.368627, 0.45098, 1)
  53. autofarm.BorderSizePixel = 0
  54. autofarm.Size = UDim2.new(0, 282, 0, 21)
  55.  
  56. xd.Name = "xd"
  57. xd.Parent = main
  58. xd.BackgroundColor3 = Color3.new(0.368627, 0.45098, 1)
  59. xd.BorderSizePixel = 0
  60. xd.Position = UDim2.new(0, 0, 0.515151501, 0)
  61. xd.Size = UDim2.new(0, 282, 0, 21)
  62.  
  63. x.Name = "x"
  64. x.Parent = main
  65. x.BackgroundColor3 = Color3.new(1, 0.0588235, 0.0588235)
  66. x.BackgroundTransparency = 0.30000001192093
  67. x.BorderSizePixel = 0
  68. x.Position = UDim2.new(0.911347508, 0, 0, 0)
  69. x.Size = UDim2.new(0, 25, 0, 21)
  70. x.Font = Enum.Font.Bodoni
  71. x.Text = "X"
  72. x.TextColor3 = Color3.new(0, 0, 0)
  73. x.TextSize = 14
  74.  
  75. labelxxl.Name = "labelxxl"
  76. labelxxl.Parent = main
  77. labelxxl.BackgroundColor3 = Color3.new(0.368627, 0.45098, 1)
  78. labelxxl.BorderSizePixel = 0
  79. labelxxl.Position = UDim2.new(0.0957446843, 0, 0, 0)
  80. labelxxl.Size = UDim2.new(0, 227, 0, 21)
  81. labelxxl.Font = Enum.Font.Bodoni
  82. labelxxl.Text = "Auto Farm"
  83. labelxxl.TextColor3 = Color3.new(1, 1, 1)
  84. labelxxl.TextSize = 16
  85.  
  86. on.Name = "on"
  87. on.Parent = main
  88. on.BackgroundColor3 = Color3.new(0.396078, 0.658824, 1)
  89. on.BackgroundTransparency = 0.20000000298023
  90. on.BorderSizePixel = 0
  91. on.Position = UDim2.new(0.0957446843, 0, 0.24242425, 0)
  92. on.Size = UDim2.new(0, 96, 0, 24)
  93. on.Font = Enum.Font.Bodoni
  94. on.Text = "On"
  95. on.TextColor3 = Color3.new(1, 1, 1)
  96. on.TextSize = 16
  97. on.TextStrokeColor3 = Color3.new(1, 1, 1)
  98.  
  99. off.Name = "off"
  100. off.Parent = main
  101. off.BackgroundColor3 = Color3.new(0.396078, 0.658824, 1)
  102. off.BackgroundTransparency = 0.20000000298023
  103. off.BorderSizePixel = 0
  104. off.Position = UDim2.new(0.570922017, 0, 0.24242425, 0)
  105. off.Size = UDim2.new(0, 96, 0, 24)
  106. off.Font = Enum.Font.Bodoni
  107. off.Text = "Off"
  108. off.TextColor3 = Color3.new(1, 1, 1)
  109. off.TextSize = 16
  110.  
  111. tp.Name = "tp"
  112. tp.Parent = main
  113. tp.BackgroundColor3 = Color3.new(0.396078, 0.658824, 1)
  114. tp.BackgroundTransparency = 0.20000000298023
  115. tp.BorderSizePixel = 0
  116. tp.Position = UDim2.new(0.0957446992, 0, 0.75757575, 0)
  117. tp.Size = UDim2.new(0, 96, 0, 24)
  118. tp.Font = Enum.Font.Bodoni
  119. tp.Text = "Teleport"
  120. tp.TextColor3 = Color3.new(1, 1, 1)
  121. tp.TextSize = 16
  122.  
  123. speed.Name = "speed"
  124. speed.Parent = main
  125. speed.BackgroundColor3 = Color3.new(0.396078, 0.658824, 1)
  126. speed.BackgroundTransparency = 0.20000000298023
  127. speed.BorderSizePixel = 0
  128. speed.Position = UDim2.new(0.570922017, 0, 0.75757575, 0)
  129. speed.Size = UDim2.new(0, 96, 0, 24)
  130. speed.Font = Enum.Font.Bodoni
  131. speed.Text = "Coming Soon..."
  132. speed.TextColor3 = Color3.new(1, 1, 1)
  133. speed.TextSize = 16
  134.  
  135. name.Name = "name"
  136. name.Parent = main
  137. name.BackgroundColor3 = Color3.new(0.368627, 0.45098, 1)
  138. name.BorderColor3 = Color3.new(0.796079, 0.796079, 0.796079)
  139. name.Position = UDim2.new(0.145390064, 0, 0.515151501, 0)
  140. name.Size = UDim2.new(0, 200, 0, 21)
  141. name.Font = Enum.Font.Bodoni
  142. name.Text = "Name"
  143. name.TextColor3 = Color3.new(1, 1, 1)
  144. name.TextSize = 17
  145.  
  146. tp.MouseButton1Down:connect(function()
  147. local d = game.Players.LocalPlayer.Character.HumanoidRootPart
  148. for i,v in pairs(game.Workspace:GetChildren()) do
  149. if v.name == name.Text then
  150. for _, b in pairs(v:GetChildren()) do
  151. if b.name == "HumanoidRootPart" then
  152. d.CFrame = b.CFrame
  153. end
  154. end
  155. end
  156. end
  157. end)
  158.  
  159. on.MouseButton1Down:connect(function()
  160. _G.range = math.huge
  161.  
  162. local lp = game.Players.LocalPlayer
  163. local rs = game:GetService("RunService").RenderStepped
  164. local pfs = game:GetService("PathfindingService")
  165. local closest = math.huge
  166. local enemy = nil
  167.  
  168. function attack(entity)
  169. if entity then
  170. if(lp.Character:FindFirstChild("HumanoidRootPart") and enemy:FindFirstChild("HumanoidRootPart")) then
  171. rs:wait()
  172. local ehrp = enemy:FindFirstChild("HumanoidRootPart")
  173. if ehrp ~= nil and (ehrp.Position-lp.Character.HumanoidRootPart.Position).magnitude > 200 then
  174. local path = pfs:FindPathAsync(lp.Character.HumanoidRootPart.Position, enemy:FindFirstChild("HumanoidRootPart").Position)
  175. local points = path:GetWaypoints()
  176.  
  177. for _,v in pairs(points) do
  178. rs:wait()
  179.  
  180. lp.Character.HumanoidRootPart.CFrame = CFrame.new(v.Position)
  181. end
  182. else
  183. if enemy:FindFirstChild("HumanoidRootPart") ~= nil then
  184. lp.Character.HumanoidRootPart.CFrame = enemy:FindFirstChild("HumanoidRootPart").CFrame * CFrame.new(0,0,4)
  185. end
  186. end
  187. local key = "\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140"
  188. local remote = game:GetService("Players").LocalPlayer.Character.Remotes.KeyEvent
  189. remote:FireServer(key,"Mouse1","Down",CFrame.new(0,0,0))
  190. local key = "\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140"
  191. local remote = game:GetService("Players").LocalPlayer.Character.Remotes.KeyEvent
  192. remote:FireServer(key,"E","Down",CFrame.new(0,0,0))
  193. local key = "\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140"
  194. local remote = game:GetService("Players").LocalPlayer.Character.Remotes.KeyEvent
  195. remote:FireServer(key,"R","Down",CFrame.new(0,0,0))
  196. local key = "\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140"
  197. local remote = game:GetService("Players").LocalPlayer.Character.Remotes.KeyEvent
  198. remote:FireServer(key,"F","Down",CFrame.new(0,0,0))
  199. local key = "\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140"
  200. local remote = game:GetService("Players").LocalPlayer.Character.Remotes.KeyEvent
  201. remote:FireServer(key,"C","Down",CFrame.new(0,0,0))
  202. end
  203. end
  204. end
  205. _G.farm = true
  206. while _G.farm do
  207. for i,v in pairs(game:GetService("Workspace").NPCSpawns:GetChildren()) do
  208. local npc = v:GetChildren()[1]
  209. if(npc and npc:FindFirstChild("HumanoidRootPart") and npc:FindFirstChild("Humanoid"))then
  210. local mag = (npc:FindFirstChild("HumanoidRootPart").Position-lp.Character.HumanoidRootPart.Position).magnitude
  211. if mag <= _G.range then
  212. closest = mag
  213. enemy = npc
  214. repeat attack(enemy) until not enemy or not enemy:FindFirstChild("HumanoidRootPart")
  215. end
  216. end
  217. end
  218. end
  219. end)
  220.  
  221. off.MouseButton1Down:connect(function()
  222. _G.farm = false
  223. end)
  224.  
  225. speed.MouseButton1Down:connect(function()
  226. down = false
  227. velocity = Instance.new("BodyVelocity")
  228. velocity.maxForce = Vector3.new(100000, 0, 100000)
  229. ---vv Use that to change the speed v
  230. local speed = 150
  231. gyro = Instance.new("BodyGyro")
  232. gyro.maxTorque = Vector3.new(100000, 0, 100000)
  233.  
  234. local hum = game.Players.LocalPlayer.Character.Humanoid
  235.  
  236. function onButton1Down(mouse)
  237. down = true
  238. velocity.Parent = game.Players.LocalPlayer.Character.UpperTorso
  239. velocity.velocity = (hum.MoveDirection) * speed
  240. gyro.Parent = game.Players.LocalPlayer.Character.UpperTorso
  241. while down do
  242. if not down then break end
  243. velocity.velocity = (hum.MoveDirection) * speed
  244. local refpos = gyro.Parent.Position + (gyro.Parent.Position - workspace.CurrentCamera.CoordinateFrame.p).unit * 5
  245. gyro.cframe = CFrame.new(gyro.Parent.Position, Vector3.new(refpos.x, gyro.Parent.Position.y, refpos.z))
  246. wait(0.1)
  247. end
  248. end
  249.  
  250. function onButton1Up(mouse)
  251. velocity.Parent = nil
  252. gyro.Parent = nil
  253. down = false
  254. end
  255. --To Change the key in those 2 lines, replace the "q" with your desired key
  256. function onSelected(mouse)
  257. mouse.KeyDown:connect(function(k) if k:lower()=="q"then onButton1Down(mouse)end end)
  258. mouse.KeyUp:connect(function(k) if k:lower()=="q"then onButton1Up(mouse)end end)
  259. end
  260.  
  261. onSelected(game.Players.LocalPlayer:GetMouse())
  262. end)
  263.  
  264. x.MouseButton1Down:connect(function()
  265. main.Visible = false
  266. Dinamic.Visible = true
  267. end)
  268.  
  269. Open.MouseButton1Down:connect(function()
  270. main.Visible = true
  271. Dinamic.Visible = false
  272. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement