INFINITY_PDB

Counter_Blox_operative

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