Advertisement
Guest User

Arsenal ESP and Aimbot

a guest
Jan 18th, 2020
2,406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.42 KB | None | 0 0
  1. I don't take credit for this script and don't copy this <---
  2.  
  3.  
  4. pcall(function()
  5. local espcolor = Color3.fromRGB(140, 69, 102)
  6. local wallhack_esp_transparency = .4
  7. local gui_hide_button = {Enum.KeyCode.LeftControl, "h"}
  8. local plrs = game:GetService("Players")
  9. local lplr = game:GetService("Players").LocalPlayer
  10. local TeamBased = true ; local teambasedswitch = "o"
  11. local presskeytoaim = true; local aimkey = "e"
  12. aimbothider = false; aimbothiderspeed = .5
  13. local Aim_Assist = false ; Aim_Assist_Key = {Enum.KeyCode.LeftControl, "z"}
  14. local espupdatetime = 5; autoesp = false; local charmsesp = true
  15. local movementcounting = true
  16.  
  17.  
  18.  
  19.  
  20. local mouselock = false
  21. local canaimat = true
  22. local lockaim = true; local lockangle = 5
  23. local ver = "2.4"
  24. local cam = game.Workspace.CurrentCamera
  25. local BetterDeathCount = true
  26. local ballisticsboost = 0
  27.  
  28. local mouse = lplr:GetMouse()
  29. local switch = false
  30. local key = "k"
  31. local aimatpart = nil
  32. local lightesp = false
  33.  
  34. local abs = math.abs
  35.  
  36. local Gui = Instance.new("ScreenGui")
  37. local Move = Instance.new("Frame")
  38. local Main = Instance.new("Frame")
  39. local EspStatus = Instance.new("TextLabel")
  40. local st1 = Instance.new("TextLabel")
  41. local st1_2 = Instance.new("TextLabel")
  42. local st1_3 = Instance.new("TextBox")
  43. local Name = Instance.new("TextLabel")
  44. --Properties:
  45.  
  46. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")
  47.  
  48.  
  49. local aimbotstatus = {"qc", "qr", "qe", "qd", "qi", "qt", "qs", "dd", "sp", "ql", "qa", "qd", "qs"}
  50. local gotstring = 0
  51. local function getrandomstring()
  52. gotstring = gotstring+666
  53. local str = ""
  54. local randomstring = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "g", "k", "l", "m", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
  55. "а","б","в","г","д","е","ё","ж","з","и","й","к","л","м","о","п","р","с","т","у","ф","х","ч","щ","ъ","ы","ъ","э","ю","я", "`", "$",
  56. "0","1","2","3","4","5","6","7","8","9", }
  57. local counting123 = 0
  58. for i, v in ipairs(randomstring) do
  59. counting123 = i
  60. end
  61. do
  62. math.randomseed(tick()+gotstring)
  63. for i = 3, math.random(1,100) do
  64. math.randomseed(i+tick()+gotstring)
  65.  
  66. local oneortwo = math.random(1,2)
  67. if oneortwo == 2 then
  68. math.randomseed(i+tick()+gotstring)
  69. str = str..""..randomstring[math.random(1, counting123)]
  70. else
  71. math.randomseed(i+tick()+gotstring)
  72. str = str..""..string.upper(randomstring[math.random(1, counting123)])
  73. end
  74.  
  75. end
  76. end
  77. return str
  78. end
  79. local mousedown = false
  80. local isonmovething = false
  81. local mouseoffset = Vector2.new()
  82. local mousedown = false
  83. local bspeed = 3584
  84. local aimbotoffset = {dd = ":", sp = " ", qa = "a", qb = "b",qc = "c", qd = "d", qe = "e", qf = "f", qg = "g" , qh = "h" , qi = "i", qj = "j", qk = "k", ql = "l", qm = "m", qn = "n", qo = "o", qp = "p", qq = "q", qr = "r", qs = "s", qt = "t", qu = "u", qv = "w", qx = "x", qy = "y", qz = "z"}
  85.  
  86.  
  87.  
  88. Gui.Name = getrandomstring()
  89.  
  90. Move.Name = getrandomstring()
  91. Move.Draggable = true
  92. Move.Parent = Gui
  93. Move.BackgroundColor3 = Color3.new(0.0431373, 1, 0.0745098)
  94. Move.BackgroundTransparency = 0.40000000596046
  95. Move.BorderSizePixel = 0
  96. Move.Position = UDim2.new(0.5, 0,0.018, 0)
  97. Move.Size = UDim2.new(0, 320, 0, 30)
  98.  
  99. Move.MouseEnter:Connect(function()
  100.  
  101. isonmovething = true
  102.  
  103. end)
  104. Move.MouseLeave:Connect(function()
  105.  
  106. isonmovething = mousedown and true or false
  107. end)
  108. mouse.Button1Down:connect(function()
  109. mousedown = true
  110. mouseoffset = Move.AbsolutePosition - Vector2.new(mouse.X, mouse.Y)
  111. end)
  112. mouse.Button1Up:connect(function()
  113. mousedown = false
  114. end)
  115.  
  116. mouse.Move:Connect(function()
  117. if isonmovething == true and mousedown then
  118. Move.Position = UDim2.new(0, mouseoffset.X + mouse.X, 0, mouseoffset.Y + mouse.Y)
  119. end
  120. end)
  121. local function uc (st)
  122. local ast = ""
  123. for i, v in ipairs(st) do
  124. local let = aimbotoffset[v]
  125. ast = ast..let
  126. end
  127. return ast
  128. end
  129.  
  130. Main.Name = getrandomstring()
  131. Main.Parent = Move
  132. Main.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  133. Main.BackgroundTransparency = 0.69999998807907
  134. Main.Position = UDim2.new(0, 0, 0.995670795, 0)
  135. Main.Size = UDim2.new(1.0000006, 0, 11.2, 0)
  136.  
  137. st1.Name = getrandomstring()
  138. st1.Parent = Main
  139. st1.BackgroundColor3 = Color3.new(1, 1, 1)
  140. st1.BackgroundTransparency = 1
  141. st1.Position = UDim2.new(0, 0, 0, 0)
  142. st1.Size = UDim2.new(1, 0, 0.161862016, 0)
  143. st1.Font = Enum.Font.ArialBold
  144. st1.Text = uc(aimbotstatus)
  145. st1.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  146. st1.TextScaled = true
  147. st1.TextSize = 14
  148. st1.TextWrapped = true
  149.  
  150. st1_2.Name = getrandomstring()
  151. st1_2.Parent = Main
  152. st1_2.BackgroundColor3 = Color3.new(1, 1, 1)
  153. st1_2.BackgroundTransparency = 1
  154. st1_2.Position = UDim2.new(0, 0, 0.375590861, 0)
  155. st1_2.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  156. st1_2.Font = Enum.Font.ArialBold
  157. st1_2.TextXAlignment = Enum.TextXAlignment.Left
  158. st1_2.Text = "Current ballistics: 0"
  159. st1_2.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  160. st1_2.TextScaled = true
  161. st1_2.TextSize = 14
  162. st1_2.TextWrapped = true
  163.  
  164. local aimbothiderbox = Instance.new("TextBox")
  165. aimbothiderbox.Name = getrandomstring()
  166. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  167. aimbothiderbox.Size = UDim2.new(1, 0,0.162, 0)
  168. aimbothiderbox.TextScaled = true
  169. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)
  170. aimbothiderbox.Position = UDim2.new(0, 0,0.853, 0)
  171. aimbothiderbox.BackgroundTransparency = 1
  172. aimbothiderbox.Parent = Main
  173.  
  174. st1_3.Name = getrandomstring()
  175. st1_3.Parent = Main
  176. st1_3.BackgroundColor3 = Color3.new(1, 1, 1)
  177. st1_3.BackgroundTransparency = 1
  178. st1_3.Position = UDim2.new(0, 0, 0.18558608, 0)
  179. st1_3.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  180. st1_3.Font = Enum.Font.ArialBold
  181. st1_3.Text = "Bullet speed = 3584"
  182. st1_3.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  183. st1_3.TextScaled = true
  184. st1_3.TextSize = 14
  185. st1_3.TextWrapped = true
  186. local teambasedstatus = st1_3:Clone()
  187. teambasedstatus.Parent = Main
  188. teambasedstatus.TextScaled = true
  189. teambasedstatus.Position = UDim2.new(0, 0,.7, 0)
  190. teambasedstatus.Size = UDim2.new(1, 0,.1, 0)
  191. teambasedstatus.Name = getrandomstring()
  192. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)
  193. local espstatustext = teambasedstatus:Clone()
  194. espstatustext.Name = getrandomstring()
  195. espstatustext.Position = UDim2.new(0, 0,0.58, 0)
  196. espstatustext.Text = "Esp loop :"..tostring(autoesp)
  197. espstatustext.Parent = Main
  198. local hide = Instance.new("TextButton")
  199. hide.Text = "_"
  200. hide.BackgroundTransparency = 1
  201. hide.TextScaled = true
  202. hide.TextWrapped = true
  203. hide.Size = UDim2.new(0.1, 0,1, 0)
  204. hide.Position = UDim2.new(0.9, 0,-0.15, 0)
  205. hide.Name = getrandomstring()
  206. hide.Parent = Move
  207. Name.Name = getrandomstring()
  208. Name.Parent = Move
  209. Name.BackgroundColor3 = Color3.new(1, 1, 1)
  210. Name.BackgroundTransparency = 1
  211. Name.Size = UDim2.new(0.838, 0, 1, 0)
  212. Name.Font = Enum.Font.Arial
  213. Name.Text = "FPS gui v"..ver
  214. Name.TextColor3 = Color3.new(0, 0, 0)
  215. Name.TextScaled = true
  216. Name.TextSize = 14
  217. Name.TextWrapped = true
  218. Name.TextXAlignment = Enum.TextXAlignment.Left
  219. local scr = Instance.new("ScrollingFrame")
  220. scr.Size = Main.Size
  221. scr.Position = Main.Position
  222. scr.ScrollBarThickness = 0
  223. scr.BackgroundTransparency = 1
  224. scr.Name = getrandomstring()
  225. Main.Size = UDim2.new(1, 0, 1, 0)
  226. Main.Position = UDim2.new(0,0,0,0)
  227. Main.Parent = scr
  228. scr.Parent = Move
  229. startpos = Main.Position
  230. Move.Active = true
  231.  
  232. -- Scripts:
  233. hided = false
  234. hide.MouseButton1Click:Connect(function()
  235. if hided == false then
  236. hided = true
  237. Main:TweenPosition(UDim2.new(0, 0, -1.5, 0))
  238. else
  239. hided = false
  240. Main:TweenPosition(startpos)
  241. end
  242. end)
  243.  
  244.  
  245. aimbothiderbox.FocusLost:Connect(function()
  246. local numb = tonumber(aimbothiderbox.Text)
  247. if aimbothider == true then
  248. aimbothiderbox.TextColor3 =Color3.fromRGB(11, 255, 19)
  249. else
  250. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)
  251. end
  252. if numb ~= nil then
  253. aimbothiderspeed = numb
  254. if aimbothider == true then
  255. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  256. else
  257. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  258. end
  259. else
  260. if aimbothider == true then
  261. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  262. else
  263. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  264. end
  265. end
  266. end)
  267.  
  268.  
  269. local plrsforaim = {}
  270.  
  271.  
  272. Move.Draggable = true
  273. Gui.ResetOnSpawn = false
  274. --Gui.Name = "Chat"
  275. Gui.DisplayOrder = 999
  276. pcall(function()
  277. if not game:GetService("CoreGui") then
  278. Gui.Parent = plrs.LocalPlayer.PlayerGui
  279. else
  280. Gui.Parent = game:GetService("CoreGui")
  281. end
  282. end)
  283. local espheadthing
  284. do
  285. local BillboardGui = Instance.new("BillboardGui")
  286. local PName = Instance.new("TextLabel")
  287. local Pdist = Instance.new("TextLabel")
  288. local ImageLabel = Instance.new("ImageLabel")
  289. local ImageLabel_2 = Instance.new("ImageLabel")
  290. --Properties:
  291. --BillboardGui.Parent = game.Workspace.Part
  292. BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  293. BillboardGui.AlwaysOnTop = true
  294. BillboardGui.LightInfluence = 0
  295. BillboardGui.Size = UDim2.new(0, 100, 0, 46)
  296. BillboardGui.Name = "headoverthing"
  297. PName.Name = "PName"
  298. PName.Parent = BillboardGui
  299. PName.BackgroundColor3 = espcolor
  300. PName.BackgroundTransparency = 0.55000001192093
  301. PName.BorderSizePixel = 0
  302. PName.Size = UDim2.new(0, 100, 0, 23)
  303. PName.Font = Enum.Font.SourceSans
  304. PName.Text = "urmom"
  305. PName.TextColor3 = Color3.new(0, 0, 0)
  306. PName.TextScaled = true
  307. PName.TextSize = 14
  308. PName.TextWrapped = true
  309. st1.Text = uc(aimbotstatus)
  310. Pdist.Name = "Pdist"
  311. Pdist.Parent = BillboardGui
  312. Pdist.AnchorPoint = Vector2.new(0.5, 0)
  313. Pdist.BackgroundColor3 = espcolor
  314. Pdist.BackgroundTransparency = 0.55000001192093
  315. Pdist.BorderSizePixel = 0
  316. Pdist.Position = UDim2.new(0.5, 0, 0.5, 0)
  317. Pdist.Size = UDim2.new(0, 70, 0, 23)
  318. Pdist.Font = Enum.Font.SourceSans
  319. Pdist.Text = "666"
  320. Pdist.TextColor3 = Color3.new(0, 0, 0)
  321. Pdist.TextScaled = true
  322. Pdist.TextSize = 14
  323. Pdist.TextWrapped = true
  324.  
  325. ImageLabel.Parent = BillboardGui
  326. ImageLabel.BackgroundColor3 = Color3.new(0.298039, 1, 0)
  327. ImageLabel.BackgroundTransparency = 1
  328. ImageLabel.BorderColor3 = espcolor
  329. ImageLabel.Position = UDim2.new(1, -15, 0.5, 0)
  330. ImageLabel.Rotation = 180
  331. ImageLabel.Size = UDim2.new(0, 15, 0, 23)
  332. ImageLabel.Image = "rbxassetid://2832171824"
  333. ImageLabel.ImageColor3 = espcolor
  334. ImageLabel.ImageTransparency = 0.55000001192093
  335.  
  336. ImageLabel_2.Parent = BillboardGui
  337. ImageLabel_2.BackgroundColor3 = espcolor
  338. ImageLabel_2.BackgroundTransparency = 1
  339. ImageLabel_2.BorderColor3 = Color3.new(0.298039, 1, 0)
  340. ImageLabel_2.Position = UDim2.new(0, 0, 0.5, 0)
  341. ImageLabel_2.Rotation = 180
  342. ImageLabel_2.Size = UDim2.new(0, 15, 0, 23)
  343. ImageLabel_2.Image = "rbxassetid://2832177613"
  344. ImageLabel_2.ImageColor3 = espcolor
  345. ImageLabel_2.ImageTransparency = 0.55000001192093
  346. espheadthing = BillboardGui
  347. end
  348.  
  349.  
  350.  
  351. f = {}
  352. f.UpdateHeadUI = function(v)
  353.  
  354.  
  355. if v.Adornee and v.Adornee ~= nil then
  356. local destr = false
  357. if TeamBased then
  358. destr = true
  359. local plr = plrs:GetPlayerFromCharacter(v.Adornee.Parent)
  360. if plr and plr.Team and plr.Team.Name ~= lplr.Team.Name then
  361. destr = false
  362. end
  363. end
  364. if lightesp == true then
  365. v.Pdist.TextColor3 = Color3.new(1,1,1)
  366. v.PName.TextColor3 = Color3.new(1,1,1)
  367. else
  368. v.Pdist.TextColor3 = Color3.new(0,0,0)
  369. v.PName.TextColor3 = Color3.new(0,0,0)
  370. end
  371. local d = math.floor((cam.CFrame.p - v.Adornee.CFrame.p).magnitude)
  372. v.Pdist.Text = tostring(d)
  373. if d < 14 then
  374. v.Enabled = false
  375. else
  376. v.Enabled = true
  377. end
  378. v.StudsOffset = Vector3.new(0,.6+d/14,0)
  379. if destr then
  380. v:Destroy()
  381. end
  382. else
  383. v:Destroy()
  384. end
  385.  
  386.  
  387. end
  388. st1.Text = uc(aimbotstatus)
  389. local espforlder
  390. local partconverter = Instance.new("Part")
  391. --local headsupdatelist = {}
  392. st1_3.FocusLost:connect(function()
  393. if tonumber(st1_3.Text) then
  394. bspeed = tonumber(st1_3.Text)
  395. else
  396.  
  397. end
  398. end)
  399. f.addesp = function()
  400. pcall(function()
  401. --print("ESP ran")
  402. if espforlder then
  403. espforlder:Destroy()
  404. espforlder = Instance.new("Folder")
  405. espforlder.Parent = game.Workspace.CurrentCamera
  406. else
  407. espforlder = Instance.new("Folder")
  408. espforlder.Parent = game.Workspace.CurrentCamera
  409. end
  410. for i, v in pairs(espforlder:GetChildren()) do
  411. v:Destroy()
  412. end
  413. for _, plr in pairs(plrs:GetChildren()) do
  414. if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
  415. if TeamBased == true then
  416.  
  417. if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then
  418. pcall(function()
  419. local e = espforlder:FindFirstChild(plr.Name)
  420. if not e then
  421. local fold = Instance.new("Folder", espforlder)
  422. fold.Name = plr.Name
  423.  
  424. --partconverter.BrickColor = plr.Team.Color
  425. --local teamc = partconverter.Color
  426. for i, p in pairs(plr.Character:GetChildren()) do
  427. if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then
  428. if charmsesp then
  429. local urmom = Instance.new("BoxHandleAdornment")
  430. urmom.ZIndex = 10
  431. urmom.AlwaysOnTop = true
  432. urmom.Color3 = espcolor
  433. urmom.Size = p.Size
  434. urmom.Adornee = p
  435. urmom.Name = tick().." Ur mom has big gay"
  436. urmom.Transparency = wallhack_esp_transparency
  437. urmom.Parent = fold
  438. if p.Name == "Head" then
  439. local th = p:FindFirstChild("headoverthing")
  440. if not th then
  441. local ht = espheadthing:Clone()
  442. ht.PName.Text = p.Parent.Name
  443. ht.Adornee = p
  444. --table.insert(headsupdatelist, ht)
  445. delay(0, function()
  446. while wait(0.08) and plr and p do
  447. f.UpdateHeadUI(ht)
  448. end
  449. end)
  450. ht.Parent = p
  451. end
  452. end
  453. end
  454. end
  455. end
  456. plr.Character.Humanoid.Died:Connect(function()
  457. fold:Destroy()
  458. end)
  459.  
  460. end
  461. end)
  462. end
  463. else
  464. local e = espforlder:FindFirstChild(plr.Name)
  465. if not e then
  466. local fold = Instance.new("Folder", espforlder)
  467. fold.Name = plr.Name
  468.  
  469. --partconverter.BrickColor = plr.Team.Color
  470. --local teamc = Move.BackgroundColor3
  471. for i, p in pairs(plr.Character:GetChildren()) do
  472. if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then
  473. pcall(function()
  474. if charmsesp then
  475. local urmom = Instance.new("BoxHandleAdornment")
  476. urmom.ZIndex = 10
  477. urmom.AlwaysOnTop = true
  478. urmom.Color3 = espcolor
  479. urmom.Size = p.Size
  480. urmom.Adornee = p
  481. urmom.Name = tick().." Ur mom has big gay"
  482. urmom.Transparency = wallhack_esp_transparency
  483. urmom.Parent = fold
  484. end
  485. if p.Name == "Head" then
  486. local th = p:FindFirstChild("headoverthing")
  487. if not th then
  488. local ht = espheadthing:Clone()
  489. ht.PName.Text = p.Parent.Name
  490. ht.Adornee = p
  491. delay(0, function()
  492. while wait(0.08) and plr and p do
  493. f.UpdateHeadUI(ht)
  494. end
  495. end)
  496. --table.insert(headsupdatelist, ht)
  497. ht.Parent = p
  498. end
  499. end
  500. end)
  501. end
  502. end
  503. plr.Character.Humanoid.Died:Connect(function()
  504. fold:Destroy()
  505. end)
  506. end
  507. end
  508.  
  509.  
  510. end
  511. end
  512. end)
  513. end
  514.  
  515. local uis = game:GetService("UserInputService")
  516. local bringall = false
  517. local hided2 = false
  518. local upping = false
  519. local downing = false
  520. mouse.KeyDown:Connect(function(a)
  521.  
  522. if a == "t" then
  523. --print("worked1")
  524. f.addesp()
  525. elseif a == gui_hide_button[2] and uis:IsKeyDown(gui_hide_button[1]) then
  526. if hided2 == false then
  527. hided2 = true
  528. autoesp =false
  529. if espforlder then
  530. espforlder:Destroy()
  531. end
  532. Gui.Enabled = false
  533. else
  534. Gui.Enabled = true
  535. hided2 = false
  536. end
  537.  
  538. elseif a == "y" then
  539. if aimbothider == false then
  540. aimbothider = true
  541. if aimbothider == true then
  542. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  543. else
  544. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  545. end
  546. else
  547.  
  548. aimbothider = false
  549. if aimbothider == true then
  550. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  551. else
  552. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  553. end
  554. end
  555. if aimbothider == true then
  556. aimbothiderbox.TextColor3 =Color3.fromRGB(11, 255, 19)
  557. else
  558. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)
  559. end
  560. elseif a == "l" then
  561. if not uis:IsKeyDown(Enum.KeyCode.LeftControl) then
  562. if autoesp == false then
  563. autoesp = true
  564. else
  565. autoesp = false
  566. end
  567. else
  568. if lightesp == true then
  569. lightesp = false
  570. else
  571. lightesp = true
  572. end
  573. end
  574. elseif a == "]" then
  575. upping = true
  576. downing = false
  577. elseif a== "[" then
  578. downing = true
  579. upping = false
  580. elseif a == Aim_Assist_Key[2] and uis:IsKeyDown(Aim_Assist_Key[1]) then
  581. if Aim_Assist == true then
  582. Aim_Assist = false
  583. --print("disabled")
  584. else
  585. Aim_Assist = true
  586. end
  587. end
  588. if a == "j" then
  589. if mouse.Target then
  590. mouse.Target:Destroy()
  591. end
  592. end
  593. if a == key then
  594. if switch == false then
  595. switch = true
  596. else
  597. switch = false
  598. if aimatpart ~= nil then
  599. aimatpart = nil
  600. end
  601. end
  602. elseif a == "b" and uis:IsKeyDown(Enum.KeyCode.LeftControl) and not uis:IsKeyDown(Enum.KeyCode.R) then
  603. if movementcounting then
  604. movementcounting = false
  605. else
  606. movementcounting = true
  607. end
  608. elseif a == teambasedswitch then
  609. if TeamBased == true then
  610. TeamBased = false
  611. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)
  612. else
  613. TeamBased = true
  614. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)
  615. end
  616. elseif a == "b" and uis:IsKeyDown(Enum.KeyCode.LeftControl) and uis:IsKeyDown(Enum.KeyCode.R) then
  617. ballisticsboost = 0
  618. elseif a == aimkey then
  619. if not aimatpart then
  620. local maxangle = math.rad(20)
  621. for i, plr in pairs(plrs:GetChildren()) do
  622. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  623. if TeamBased == true then
  624. if plr.Team.Name ~= lplr.Team.Name then
  625. local an = checkfov(plr.Character.Head)
  626. if an < maxangle then
  627. maxangle = an
  628. aimatpart = plr.Character.Head
  629. end
  630. end
  631. else
  632. local an = checkfov(plr.Character.Head)
  633. if an < maxangle then
  634. maxangle = an
  635. aimatpart = plr.Character.Head
  636. end
  637. --print(plr)
  638. end
  639. local old = aimatpart
  640. plr.Character.Humanoid.Died:Connect(function()
  641. --print("died")
  642. if aimatpart and aimatpart == old then
  643. aimatpart = nil
  644. end
  645. end)
  646.  
  647. end
  648. end
  649. else
  650. aimatpart = nil
  651. canaimat = false
  652. delay(1.1, function()
  653. canaimat = true
  654. end)
  655. end
  656. end
  657. end)
  658.  
  659. function getfovxyz (p0, p1, deg)
  660. local x1, y1, z1 = p0:ToOrientation()
  661. local cf = CFrame.new(p0.p, p1.p)
  662. local x2, y2, z2 = cf:ToOrientation()
  663. local d = math.deg
  664. if deg then
  665. return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
  666. else
  667. return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  668. end
  669. end
  670.  
  671.  
  672. function aimat(part)
  673. if part then
  674. --print(part)
  675. local d = (cam.CFrame.p - part.CFrame.p).magnitude
  676. local calculatedrop
  677. local timetoaim = 0
  678. local pos2 = Vector3.new()
  679. if movementcounting == true then
  680. timetoaim = d/bspeed
  681. pos2 = part.Velocity * timetoaim
  682. end
  683. local minuseddrop = (ballisticsboost+50)/50
  684. if ballisticsboost ~= 0 then
  685. calculatedrop = d - (d/minuseddrop)
  686.  
  687. else
  688. calculatedrop = 0
  689. end
  690. --print(calculatedrop)
  691. local addative = Vector3.new()
  692. if movementcounting then
  693. addative = pos2
  694. end
  695. local cf = CFrame.new(cam.CFrame.p, (addative + part.CFrame.p+ Vector3.new(0, calculatedrop, 0)))
  696. if aimbothider == true or Aim_Assist == true then
  697. cam.CFrame = cam.CFrame:Lerp(cf, aimbothiderspeed)
  698. else
  699.  
  700. cam.CFrame = cf
  701. end
  702. --print(cf)
  703. end
  704. end
  705. function checkfov (part)
  706. local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
  707. local angle = math.abs(fov.X) + math.abs(fov.Y)
  708. return angle
  709. end
  710. pcall(function()
  711. delay(0, function()
  712. while wait(.32) do
  713. if Aim_Assist and not aimatpart and canaimat and lplr.Character and lplr.Character.Humanoid and lplr.Character.Humanoid.Health > 0 then
  714. for i, plr in pairs(plrs:GetChildren()) do
  715.  
  716.  
  717. local minangle = math.rad(5.5)
  718. local lastpart = nil
  719. local function gg(plr)
  720. pcall(function()
  721. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Character.Head then
  722. local raycasted = false
  723. local cf1 = CFrame.new(cam.CFrame.p, plr.Character.Head.CFrame.p) * CFrame.new(0, 0, -4)
  724. local r1 = Ray.new(cf1.p, cf1.LookVector * 9000)
  725. local obj, pos = game.Workspace:FindPartOnRayWithIgnoreList(r1, {lplr.Character.Head})
  726. local dist = (plr.Character.Head.CFrame.p- pos).magnitude
  727. if dist < 4 then
  728. raycasted = true
  729. end
  730. if raycasted == true then
  731. local an1 = getfovxyz(cam.CFrame, plr.Character.Head.CFrame)
  732. local an = abs(an1.X) + abs(an1.Y)
  733. if an < minangle then
  734. minangle = an
  735. lastpart = plr.Character.Head
  736. end
  737. end
  738. end
  739. end)
  740. end
  741. if TeamBased then
  742. if plr.Team.Name ~= lplr.Team.Name then
  743. gg(plr)
  744. end
  745. else
  746. gg(plr)
  747. end
  748. --print(math.deg(minangle))
  749. if lastpart then
  750. aimatpart = lastpart
  751. aimatpart.Parent.Humanoid.Died:Connect(function()
  752. if aimatpart == lastpart then
  753. aimatpart = nil
  754. end
  755. end)
  756.  
  757. end
  758. end
  759. end
  760. end
  761. end)
  762. end)
  763. local oldheadpos
  764. local lastaimapart
  765. game:GetService("RunService").RenderStepped:Connect(function(dt)
  766. if uis:IsKeyDown(Enum.KeyCode.RightBracket) or uis:IsKeyDown(Enum.KeyCode.LeftBracket) then
  767. if upping then
  768. ballisticsboost = ballisticsboost + dt/1.9
  769. elseif downing then
  770. ballisticsboost = ballisticsboost - dt/1.9
  771. end
  772. end
  773. if movementcounting then
  774. st1_2.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  775. st1_2.Text = "Current ballistics: "..tostring(math.floor(ballisticsboost*10)/10)
  776. else
  777. st1_2.TextColor3 = Color3.new(1,0,0)
  778. end
  779. espstatustext.Text = "Esp loop :"..tostring(autoesp)
  780. if aimatpart and lplr.Character and lplr.Character.Head then
  781. if BetterDeathCount and lastaimapart and lastaimapart == aimatpart then
  782. local dist = (oldheadpos - aimatpart.CFrame.p).magnitude
  783. if dist > 40 then
  784. aimatpart = nil
  785. end
  786. end
  787. lastaimapart = aimatpart
  788. oldheadpos = lastaimapart.CFrame.p
  789. do
  790. if aimatpart.Parent == plrs.LocalPlayer.Character then
  791. aimatpart = nil
  792. end
  793. aimat(aimatpart)
  794. pcall(function()
  795. if Aim_Assist == true then
  796. local cf1 = CFrame.new(cam.CFrame.p, aimatpart.CFrame.p) * CFrame.new(0, 0, -4)
  797. local r1 = Ray.new(cf1.p, cf1.LookVector * 1000)
  798. local obj, pos = game.Workspace:FindPartOnRayWithIgnoreList(r1, {lplr.Character.Head})
  799. local dist = (aimatpart.CFrame.p- pos).magnitude
  800. if obj then
  801. --print(obj:GetFullName())
  802. end
  803. if not obj or dist > 6 then
  804. aimatpart = nil
  805. --print("ooof")
  806. end
  807. canaimat = false
  808. delay(.5, function()
  809. canaimat = true
  810. end)
  811. end
  812. end)
  813. end
  814.  
  815.  
  816.  
  817. end
  818. end)
  819.  
  820.  
  821. delay(0, function()
  822. while wait(espupdatetime) do
  823. if autoesp == true then
  824. pcall(function()
  825. f.addesp()
  826. end)
  827. end
  828. end
  829. end)
  830. --warn("loaded")
  831. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement