Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.70 KB | None | 0 0
  1. local plrs = game: GetService ("Jugadores")
  2. TeamBased local = verdadero; equipo local basswitch = "o"
  3. local presskeytoaim = true; local aimkey = "e"
  4. local raycast = falso
  5.  
  6. espupdatetime local = 5; autoesp = falso
  7.  
  8.  
  9.  
  10. lockaim local = verdadero; lockangle local = 5
  11.  
  12.  
  13.  
  14. --funcion findwat (carpeta, que)
  15. - para i, smth en pares (carpeta: GetChildren ()) do
  16. - si string.find (string.lower (tostring (smth)), string.lower (what)) entonces
  17. - Regresa un poco
  18. -- final
  19. -- final
  20. --fin
  21. -
  22. --local plrs = findwat (juego, "Jugadores")
  23.  
  24.  
  25.  
  26.  
  27. Gui local = Instancia.nuevo ("ScreenGui")
  28. local Move = Instance.new ("Frame")
  29. local principal = Instancia.nuevo ("Marco")
  30. local EspStatus = Instance.new ("TextLabel")
  31. local st1 = Instance.new ("TextLabel")
  32. local st1_2 = Instance.new ("TextLabel")
  33. local st1_3 = Instance.new ("TextLabel")
  34. Nombre local = Instancia.nuevo ("TextLabel")
  35. --Propiedades:
  36. Gui.Name = "Gui"
  37. Gui.Parent = plrs.LocalPlayer: WaitForChild ("PlayerGui")
  38.  
  39. Move.Name = "Move"
  40. Move.Parent = Gui
  41. Move.BackgroundColor3 = Color3.new (0.545098, 0, 0)
  42. Move.BackgroundTransparency = 1
  43. Move.BorderSizePixel = 0
  44. Move.Draggable = true
  45. Move.Position = UDim2.new (0.005, 0, -0.15, 0)
  46. Move.Size = UDim2.new (0.28141585, 0, 0.0320388414, 0)
  47.  
  48. Main.Name = "Main"
  49. Main.Parent = Move
  50. Main.BackgroundColor3 = Color3.new (1, 1, 1)
  51. Posición principal = UDim2.new (0, -7, 20.9960003, 0)
  52. Tamaño principal = UDim2.new (1, 0, 5.79699993, 0)
  53. Main.Style = Enum.FrameStyle.RobloxSquare
  54.  
  55. EspStatus.Name = "EspStatus"
  56. EspStatus.Parent = Principal
  57. EspStatus.BackgroundColor3 = Color3.new (1, 1, 1)
  58. EspStatus.BackgroundTransparency = 1
  59. EspStatus.Position = UDim2.new (0, 0, 0.300000012, 0)
  60. EspStatus.Size = UDim2.new (1, 0, 0.162, 0)
  61. EspStatus.Font = Enum.Font.ArialBold
  62. EspStatus.Text = "Presione O para cambiar el modo basado en el equipo"
  63. EspStatus.TextColor3 = Color3.new (0.6, 0.196078, 0.8)
  64. EspStatus.TextScaled = true
  65. EspStatus.TextWrapped = true
  66.  
  67. st1.Name = "st1"
  68. st1.Parent = Principal
  69. st1.BackgroundColor3 = Color3.new (1, 1, 1)
  70. st1.BackgroundTransparency = 1
  71. st1.Position = UDim2.new (0.271787882, 0, 0, 0)
  72. st1.Size = UDim2.new (0.728211343, 0, 0.161862016, 0)
  73. st1.Font = Enum.Font.ArialBold
  74. st1.Text = ""
  75. st1.TextColor3 = Color3.new (0.0784314, 0.541176, 0)
  76. st1.TextScaled = true
  77. st1.TextSize = 14
  78. st1.TextWrapped = true
  79.  
  80. st1_2.Name = "st1"
  81. st1_2.Parent = Principal
  82. st1_2.BackgroundColor3 = Color3.new (1, 1, 1)
  83. st1_2.BackgroundTransparency = 1
  84. st1_2.Position = UDim2.new (0, 0, 0.875999987, 0)
  85. st1_2.Size = UDim2.new (0.999999881, 0, 0.161862016, 0)
  86. st1_2.Font = Enum.Font.ArialBold
  87. st1_2.Text = "Presione E para bloquear a una persona dentro de su vista"
  88. st1_2.TextColor3 = Color3.new (0.6, 0.196078, 0.8)
  89. st1_2.TextScaled = true
  90. st1_2.TextWrapped = true
  91.  
  92. st1_3.Name = "st1"
  93. st1_3.Parent = Principal
  94. st1_3.BackgroundColor3 = Color3.new (1, 1, 1)
  95. st1_3.BackgroundTransparency = 1
  96. st1_3.Position = UDim2.new (0, 0, 0.54, 0)
  97. st1_3.Size = UDim2.new (1, 0, 0.261999995, 0)
  98. st1_3.Font = Enum.Font.ArialBold
  99. st1_3.Text = "Presione L para habilitar el bucle esp y presione T para actualizar esp"
  100. st1_3.TextColor3 = Color3.new (0.6, 0.196078, 0.8)
  101. st1_3.TextScaled = true
  102. st1_3.TextWrapped = true
  103.  
  104.  
  105. Nombre.Nombre = "Nombre"
  106. Nombre.Parente = Mover
  107. Name.BackgroundColor3 = Color3.new (0.545098, 0, 0)
  108. Name.BackgroundTransparency = 1
  109. Name.Position = UDim2.new (0, 25, 20.9860001, 0)
  110. Name.Size = UDim2.new (0.838, 0, 1.27999997, 0)
  111. Name.Font = Enum.Font.Arcade
  112. Name.Text = "ARSENAL GUI"
  113. Name.TextColor3 = Color3.new (0.541176, 0.168627, 0.886275)
  114. Name.TextScaled = true
  115. Name.TextSize = 12
  116. Name.TextWrapped = true
  117. -- Guiones:
  118.  
  119.  
  120. local plrsforaim = {}
  121.  
  122. local lplr = game: GetService ("Players"). LocalPlayer
  123. Move.Draggable = true
  124. Gui.ResetOnSpawn = false
  125. Gui.Name = "Chat"
  126. Gui.DisplayOrder = 999
  127.  
  128. Gui.Parent = plrs.LocalPlayer.PlayerGui
  129.  
  130.  
  131. f = {}
  132. espforlder local
  133.  
  134. f.addesp = función ()
  135. --print ("ESP corrió")
  136. si espforlder entonces
  137. más
  138. espforlder = Instance.new ("Carpeta")
  139. espforlder.Parent = game.Workspace.CurrentCamera
  140. fin
  141. para i, v en pares (espforlder: GetChildren ()) hacer
  142. v: Destruir ()
  143. fin
  144. para _, plr en pares (plrs: GetChildren ()) hacer
  145. si plr.Character y plr.Character.Humanoid.Health> 0 y plr.Name ~ = lplr.Name entonces
  146. si TeamBased == true entonces
  147. si plr.Team.Name ~ = plrs.LocalPlayer.Team.Name entonces
  148. local e = espforlder: FindFirstChild (plr.Name)
  149. si no e entonces
  150. --print ("Agregado esp para equipo")
  151. factura local = Instancia.nuevo ("BillboardGui", espforlder)
  152. bill.Name = plr.Name
  153. bill.AlwaysOnTop = true
  154. bill.Size = UDim2.new (1,0,1,0)
  155. bill.Adornee = plr.Character.Head
  156. local Frame = Instance.new ('Frame', bill)
  157. Frame.Active = true
  158. Frame.BackgroundColor3 = Color3.new (0.541176, 0.168627, 0.886275)
  159. Frame.BackgroundTransparency = 0
  160. Frame.BorderSizePixel = 0
  161. Frame.AnchorPoint = Vector2.new (.5, .5)
  162. Frame.Position = UDim2.new (0.5,0,0.5.0)
  163. Frame.Size = UDim2.new (1,0,1,0)
  164. Frame.Rotation = 0
  165. plr.Character.Humanoid.Died: Connect (function ()
  166. proyecto de ley: Destruir ()
  167. fin)
  168. fin
  169. fin
  170. más
  171. local e = espforlder: FindFirstChild (plr.Name)
  172. si no e entonces
  173. --print ("Added esp")
  174. factura local = Instancia.nuevo ("BillboardGui", espforlder)
  175. bill.Name = plr.Name
  176. bill.AlwaysOnTop = true
  177. bill.Size = UDim2.new (1,0,1,0)
  178. bill.Adornee = plr.Character.Head
  179. local Frame = Instance.new ('Frame', bill)
  180. Frame.Active = true
  181. Frame.BackgroundColor3 = Color3.new (0.541176, 0.168627, 0.886275)
  182. Frame.BackgroundTransparency = 0
  183. Frame.BorderSizePixel = 0
  184. Frame.AnchorPoint = Vector2.new (.5, .5)
  185. Frame.Position = UDim2.new (0.5,0,0.5.0)
  186. Frame.Size = UDim2.new (1,0,1,0)
  187. Frame.Rotation = 0
  188. plr.Character.Humanoid.Died: Connect (function ()
  189. proyecto de ley: Destruir ()
  190. fin)
  191. fin
  192. fin
  193.  
  194.  
  195. fin
  196. fin
  197. fin
  198. local cam = game.Workspace.CurrentCamera
  199.  
  200. ratón local = lplr: GetMouse ()
  201. interruptor local = falso
  202. clave local = "k"
  203. aimatpart local = nil
  204. mouse.KeyDown: Connect (función (a)
  205. si a == "t" entonces
  206. imprimir ("trabajado1")
  207. f.addesp ()
  208. elseif a == "u" entonces
  209. si raycast == verdadero entonces
  210. raycast = falso
  211. más
  212. raycast = true
  213. fin
  214. elseif a == "l" entonces
  215. si autoesp == falso entonces
  216. autoesp = verdadero
  217. más
  218. autoesp = falso
  219. fin
  220. fin
  221. si a == "j" entonces
  222. si el mouse.target entonces
  223. mouse.Target:Destroy ()
  224. fin
  225. fin
  226. si una clave == entonces
  227. si interruptor == falso entonces
  228. switch = true
  229. más
  230. interruptor = falso
  231. si aimatpart ~ = nil entonces
  232. aimatpart = nil
  233. fin
  234. fin
  235. elseif a == teambasedswitch entonces
  236. si TeamBased == true entonces
  237. TeamBased = falso
  238. teambasedstatus.Text = tostring (TeamBased)
  239. más
  240. TeamBased = true
  241. teambasedstatus.Text = tostring (TeamBased)
  242. fin
  243. elseif a == aimkey then
  244. si no es aimatpart entonces
  245. local maxangle = math.rad (20)
  246. para i, plr en pares (plrs: GetChildren ()) hacer
  247. si plr.Name ~ = lplr.Name y plr.Character y plr.Character.Head y plr.Character.Humanoid y plr.Character.Humanoid.Health> 1 entonces
  248. si TeamBased == true entonces
  249. si plr.Team.Name ~ = lplr.Team.Name entonces
  250. local an = checkfov (plr.Character.Head)
  251. si un <maxangle entonces
  252. maxangle = an
  253. aimatpart = plr.Character.Head
  254. fin
  255. fin
  256. más
  257. local an = checkfov (plr.Character.Head)
  258. si un <maxangle entonces
  259. maxangle = an
  260. aimatpart = plr.Character.Head
  261. fin
  262. imprimir (plr)
  263. fin
  264. plr.Character.Humanoid.Died: Connect (function ()
  265. if aimatpart.Parent == plr.Character o aimatpart == nil then
  266. aimatpart = nil
  267. fin
  268. fin)
  269. fin
  270. fin
  271. más
  272. aimatpart = nil
  273. fin
  274. fin
  275. fin)
  276.  
  277. función getfovxyz (p0, p1, grados)
  278. x1 local, y1, z1 = p0: ToOrientation ()
  279. local cf = CFrame.new (p0.p, p1.p)
  280. x2 local, y2, z2 = cf: ToOrientation ()
  281. --local d = math.deg
  282. si grados entonces
  283. --retorno Vector3.new (d (x1-x2), d (y1-y2), d (z1-z2))
  284. más
  285. devuelve Vector3.new ((x1-x2), (y1-y2), (z1-z2))
  286. fin
  287. fin
  288.  
  289. función getaimbotplrs ()
  290. plrsforaim = {}
  291. para i, plr en pares (plrs: GetChildren ()) hacer
  292. if plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health> 0 y plr.Name ~ = lplr.Name y plr.Character.Head luego
  293.  
  294. si TeamBased == true entonces
  295. si plr.Team.Name ~ = lplr.Team.Name entonces
  296. local cf = CFrame.new (game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  297. r local = Ray.new (cf, cf.LookVector * 10000)
  298. local ign = {}
  299. para i, v en pares (plrs.LocalPlayer.Character: GetChildren ()) do
  300. si v: IsA ("BasePart") entonces
  301. table.insert (ign, v)
  302. fin
  303. fin
  304. local obj = game.Workspace: FindPartOnRayWithIgnoreList (r, ign)
  305. if obj.Parent == plr.Character and obj.Parent ~ = lplr.Character entonces
  306. table.insert (plrsforaim, obj)
  307. fin
  308. fin
  309. más
  310. local cf = CFrame.new (game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  311. r local = Ray.new (cf, cf.LookVector * 10000)
  312. local ign = {}
  313. para i, v en pares (plrs.LocalPlayer.Character: GetChildren ()) do
  314. si v: IsA ("BasePart") entonces
  315. table.insert (ign, v)
  316. fin
  317. fin
  318. local obj = game.Workspace: FindPartOnRayWithIgnoreList (r, ign)
  319. if obj.Parent == plr.Character and obj.Parent ~ = lplr.Character entonces
  320. table.insert (plrsforaim, obj)
  321. fin
  322. fin
  323.  
  324.  
  325. fin
  326. fin
  327. fin
  328.  
  329. función aimat (parte)
  330. cam.CFrame = CFrame.new (cam.CFrame.p, part.CFrame.p)
  331. fin
  332. función checkfov (parte)
  333. local fov = getfovxyz (game.Workspace.CurrentCamera.CFrame, part.CFrame)
  334. ángulo local = math.abs (fov.X) + math.abs (fov.Y)
  335. ángulo de retorno
  336. fin
  337.  
  338. juego: GetService ("RunService"). RenderStepped: Connect (function ()
  339. si aimatpart entonces
  340. aimat (aimatpart)
  341. si aimatpart.Parent == plrs.LocalPlayer.Character entonces
  342. aimatpart = nil
  343. fin
  344. fin
  345.  
  346.  
  347. - si switch == true entonces
  348. - maxangle local = 99999
  349. -
  350. --print ("Loop")
  351. - si es verdadero y raycast == falso entonces
  352. - para i, plr en pares (plrs: GetChildren ()) do
  353. - si plr.Name ~ = lplr.Name y plr.Character y plr.Character.Head y plr.Character.Humanoid y plr.Character.Humanoid.Health> 1 luego
  354. - si TeamBased entonces
  355. - si plr.Team.Name ~ = lplr.Team.Name o plr.Team.TeamColor ~ = lplr.Team.TeamColor entonces
  356. - local an = checkfov (plr.Character.Head)
  357. - si es un <maxangle entonces
  358. - maxangle = an
  359. - aimatpart = plr.Character.Head
  360. - si un <lockangle entonces
  361. -- rotura
  362. -- final
  363. -- final
  364. -- final
  365. otra cosa
  366. - local an = checkfov (plr.Character.Head)
  367. - si es un <maxangle entonces
  368. - maxangle = an
  369. - aimatpart = plr.Character.Head
  370. - si un <lockangle entonces
  371. -- rotura
  372. -- final
  373. -- final
  374. -- final
  375. -
  376. -
  377. -
  378. -
  379. -- final
  380. -- final
  381. - elseif raycast == true entonces
  382. -
  383. -- final
  384.  
  385. si raycast == true y switch == false y no aimatpart entonces
  386. getaimbotplrs ()
  387. aimatpart = nil
  388. local maxangle = 999
  389. para i, v en ipairs (plrsforaim) do
  390. if v.Parent ~ = lplr.Character entonces
  391. local an = checkfov (v)
  392. si un <maxangle y v ~ = lplr.Character.Head entonces
  393. maxangle = an
  394. aimatpart = v
  395. imprimir (v: GetFullName ())
  396. v.Parent.Humanoid.Died: connect (function ()
  397. aimatpart = nil
  398. fin)
  399. fin
  400. fin
  401. fin
  402.  
  403. fin
  404. fin)
  405. retraso (0, función ()
  406. mientras espera (espupdatetime) hacer
  407. si autoesp == verdadero entonces
  408. pcall (function ()
  409. f.addesp ()
  410. fin)
  411. fin
  412. fin
  413. fin)
  414. advertir ("cargado")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement