Advertisement
Blox101

daad

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