Advertisement
Mil_Dev

Untitled

Dec 18th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.08 KB | None | 0 0
  1. -- Powered by Mil_Dev
  2. -- Credits to the owner
  3.  
  4.  
  5.  
  6.  
  7. pcall(function()
  8. local espcolor = Color3.fromRGB(0, 123, 255)
  9. local wallhack_esp_transparency = .4
  10. local gui_hide_button = {Enum.KeyCode.LeftControl, "h"}
  11. local plrs = game:GetService("Players")
  12. local lplr = game:GetService("Players").LocalPlayer
  13. local TeamBased = true ; local teambasedswitch = "o"
  14. local presskeytoaim = true; local aimkey = "e"
  15. aimbothider = false; aimbothiderspeed = .5
  16. local Aim_Assist = false ; Aim_Assist_Key = {Enum.KeyCode.LeftControl, "z"}
  17. local espupdatetime = 5; autoesp = false
  18. local abs = math.abs
  19. local mouselock = false
  20. local canaimat = true
  21. local lockaim = true; local lockangle = 5
  22. local ver = "2"
  23. local cam = game.Workspace.CurrentCamera
  24. local BetterDeathCount = true
  25.  
  26.  
  27. local mouse = lplr:GetMouse()
  28. local switch = false
  29. local key = "k"
  30. local aimatpart = nil
  31.  
  32.  
  33.  
  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("TextLabel")
  42. local Name = Instance.new("TextLabel")
  43. --Properties:
  44.  
  45. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")
  46.  
  47.  
  48.  
  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.  
  83.  
  84.  
  85.  
  86. Gui.Name = getrandomstring()
  87.  
  88. Move.Name = getrandomstring()
  89. Move.Draggable = true
  90. Move.Parent = Gui
  91. Move.BackgroundColor3 = Color3.new(0.0509804, 0.435294, 0.901961)
  92. Move.BackgroundTransparency = 0.40000000596046
  93. Move.BorderSizePixel = 0
  94. Move.Position = UDim2.new(0.5, 0,0.018, 0)
  95. Move.Size = UDim2.new(0.2, 0, 0.0320388414, 0)
  96.  
  97. Move.MouseEnter:Connect(function()
  98.  
  99. isonmovething = true
  100.  
  101. end)
  102. Move.MouseLeave:Connect(function()
  103.  
  104. isonmovething = mousedown and true or false
  105. end)
  106. mouse.Button1Down:connect(function()
  107. mousedown = true
  108. mouseoffset = Move.AbsolutePosition - Vector2.new(mouse.X, mouse.Y)
  109. end)
  110. mouse.Button1Up:connect(function()
  111. mousedown = false
  112. end)
  113.  
  114. mouse.Move:Connect(function()
  115. if isonmovething == true and mousedown then
  116. Move.Position = UDim2.new(0, mouseoffset.X + mouse.X, 0, mouseoffset.Y + mouse.Y)
  117. end
  118. end)
  119.  
  120. Main.Name = getrandomstring()
  121. Main.Parent = Move
  122. Main.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  123. Main.BackgroundTransparency = 0.69999998807907
  124. Main.Position = UDim2.new(0, 0, 0.995670795, 0)
  125. Main.Size = UDim2.new(1.0000006, 0, 11.2, 0)
  126.  
  127. EspStatus.Name = getrandomstring()
  128. EspStatus.Parent = Main
  129. EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)
  130. EspStatus.BackgroundTransparency = 1
  131. EspStatus.Size = UDim2.new(0.272955924, 0, 0.161862016, 0)
  132. EspStatus.Font = Enum.Font.ArialBold
  133. EspStatus.Text = "Press T to update Esp"
  134. EspStatus.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  135. EspStatus.TextScaled = true
  136. EspStatus.TextSize = 14
  137. EspStatus.TextWrapped = true
  138.  
  139. st1.Name = getrandomstring()
  140. st1.Parent = Main
  141. st1.BackgroundColor3 = Color3.new(1, 1, 1)
  142. st1.BackgroundTransparency = 1
  143. st1.Position = UDim2.new(0.271787882, 0, 0, 0)
  144. st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)
  145. st1.Font = Enum.Font.ArialBold
  146. st1.Text = "Press "..aimkey.." to lock on a person inside ur view"
  147. st1.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  148. st1.TextScaled = true
  149. st1.TextSize = 14
  150. st1.TextWrapped = true
  151.  
  152. st1_2.Name = getrandomstring()
  153. st1_2.Parent = Main
  154. st1_2.BackgroundColor3 = Color3.new(1, 1, 1)
  155. st1_2.BackgroundTransparency = 1
  156. st1_2.Position = UDim2.new(0, 0, 0.375590861, 0)
  157. st1_2.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  158. st1_2.Font = Enum.Font.ArialBold
  159. st1_2.Text = "Press L to enable esp loop. Press Y to disable/enable aimbot hider"
  160. st1_2.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  161. st1_2.TextScaled = true
  162. st1_2.TextSize = 14
  163. st1_2.TextWrapped = true
  164.  
  165. local aimbothiderbox = Instance.new("TextBox")
  166. aimbothiderbox.Name = getrandomstring()
  167. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  168. aimbothiderbox.Size = UDim2.new(1, 0,0.162, 0)
  169. aimbothiderbox.TextScaled = true
  170. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)
  171. aimbothiderbox.Position = UDim2.new(0, 0,0.853, 0)
  172. aimbothiderbox.BackgroundTransparency = 1
  173. aimbothiderbox.Parent = Main
  174.  
  175. st1_3.Name = getrandomstring()
  176. st1_3.Parent = Main
  177. st1_3.BackgroundColor3 = Color3.new(1, 1, 1)
  178. st1_3.BackgroundTransparency = 1
  179. st1_3.Position = UDim2.new(0, 0, 0.18558608, 0)
  180. st1_3.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  181. st1_3.Font = Enum.Font.ArialBold
  182. st1_3.Text = "Press O to change team based mode"
  183. st1_3.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  184. st1_3.TextScaled = true
  185. st1_3.TextSize = 14
  186. st1_3.TextWrapped = true
  187. local teambasedstatus = st1_3:Clone()
  188. teambasedstatus.Parent = Main
  189. teambasedstatus.TextScaled = true
  190. teambasedstatus.Position = UDim2.new(0, 0,.7, 0)
  191. teambasedstatus.Size = UDim2.new(1, 0,.1, 0)
  192. teambasedstatus.Name = getrandomstring()
  193. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)
  194. local espstatustext = teambasedstatus:Clone()
  195. espstatustext.Name = getrandomstring()
  196. espstatustext.Position = UDim2.new(0, 0,0.58, 0)
  197. espstatustext.Text = "Esp loop :"..tostring(autoesp)
  198. espstatustext.Parent = Main
  199. local hide = Instance.new("TextButton")
  200. hide.Text = "_"
  201. hide.BackgroundTransparency = 1
  202. hide.TextScaled = true
  203. hide.TextWrapped = true
  204. hide.Size = UDim2.new(0.1, 0,1, 0)
  205. hide.Position = UDim2.new(0.9, 0,-0.15, 0)
  206. hide.Name = getrandomstring()
  207. hide.Parent = Move
  208. Name.Name = getrandomstring()
  209. Name.Parent = Move
  210. Name.BackgroundColor3 = Color3.new(1, 1, 1)
  211. Name.BackgroundTransparency = 1
  212. Name.Size = UDim2.new(0.838, 0, 1, 0)
  213. Name.Font = Enum.Font.Arial
  214. Name.Text = "Ios X Aimbot v"..ver
  215. Name.TextColor3 = Color3.new(0, 0, 0)
  216. Name.TextScaled = true
  217. Name.TextSize = 14
  218. Name.TextWrapped = true
  219. Name.TextXAlignment = Enum.TextXAlignment.Left
  220. local scr = Instance.new("ScrollingFrame")
  221. scr.Size = Main.Size
  222. scr.Position = Main.Position
  223. scr.ScrollBarThickness = 0
  224. scr.BackgroundTransparency = 1
  225. scr.Name = getrandomstring()
  226. Main.Size = UDim2.new(1, 0, 1, 0)
  227. Main.Position = UDim2.new(0,0,0,0)
  228. Main.Parent = scr
  229. scr.Parent = Move
  230. startpos = Main.Position
  231. Move.Active = true
  232.  
  233. -- Scripts:
  234. local function SKMHXL_fake_script() -- OD5ZH8MTG0EILTTPW.LocalScript
  235. local script = Instance.new('LocalScript', EspStatus)
  236.  
  237. while true do
  238. for a = 1,360,1 do wait(.01)
  239. script.Parent.TextColor3 = Color3.fromHSV(a/360,1,1)
  240. end
  241. end
  242. end
  243. coroutine.wrap(SKMHXL_fake_script)()
  244. local function TYPHDL_fake_script() -- OFQO.LocalScript
  245. local script = Instance.new('LocalScript', st1)
  246.  
  247. while true do
  248. for a = 1,360,1 do wait(.01)
  249. script.Parent.TextColor3 = Color3.fromHSV(a/360,1,1)
  250. end
  251. end
  252. end
  253. coroutine.wrap(TYPHDL_fake_script)()
  254. local function LLSVYCR_fake_script() -- _6ABC03Y9IRXIM8B0ICIE.LocalScript
  255. local script = Instance.new('LocalScript', st1_2)
  256.  
  257. while true do
  258. for a = 1,360,1 do wait(.01)
  259. script.Parent.TextColor3 = Color3.fromHSV(a/360,1,1)
  260. end
  261. end
  262. end
  263. coroutine.wrap(LLSVYCR_fake_script)()
  264. local function RXGJSNA_fake_script() -- R3A4LSP7YOBE7QW604KVAV2RL20V6.LocalScript
  265. local script = Instance.new('LocalScript', st1_3)
  266.  
  267. while true do
  268. for a = 1,360,1 do wait(.01)
  269. script.Parent.TextColor3 = Color3.fromHSV(a/360,1,1)
  270. end
  271. end
  272. end
  273. coroutine.wrap(RXGJSNA_fake_script)()
  274. local function LMRGYDD_fake_script() -- AM6E.LocalScript
  275. local script = Instance.new('LocalScript', teambasedstatus)
  276.  
  277. while true do
  278. for a = 1,360,1 do wait(.01)
  279. script.Parent.TextColor3 = Color3.fromHSV(a/360,1,1)
  280. end
  281. end
  282. end
  283. coroutine.wrap(LMRGYDD_fake_script)()
  284. local function IISY_fake_script() -- _022DL9TQFB01H2H65I2BZ5CZWEF7UMW.LocalScript
  285. local script = Instance.new('LocalScript', espstatustext)
  286.  
  287. while true do
  288. for a = 1,360,1 do wait(.01)
  289. script.Parent.TextColor3 = Color3.fromHSV(a/360,1,1)
  290. end
  291. end
  292. end
  293. coroutine.wrap(IISY_fake_script)()
  294.  
  295.  
  296.  
  297.  
  298. local sad = 0
  299. local Mouse = game.Players.LocalPlayer:GetMouse()
  300. Mouse.KeyDown:Connect(function(Key)
  301. if Key == "n" then
  302. if sad == 0 then
  303. Main.Visible = false
  304. sad = 1
  305. elseif sad == 1 then
  306. Main.Visible = true
  307. sad = 0
  308. end
  309. end
  310. end)
  311.  
  312.  
  313.  
  314. hided = false
  315. hide.MouseButton1Click:Connect(function()
  316. if hided == false then
  317. hided = true
  318. Main:TweenPosition(UDim2.new(0, 0, -1.5, 0))
  319. else
  320. hided = false
  321. Main:TweenPosition(startpos)
  322. end
  323. end)
  324.  
  325.  
  326. aimbothiderbox.FocusLost:Connect(function()
  327. local numb = tonumber(aimbothiderbox.Text)
  328. if aimbothider == true then
  329. aimbothiderbox.TextColor3 =Color3.fromRGB(11, 255, 19)
  330. else
  331. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)
  332. end
  333. if numb ~= nil then
  334. aimbothiderspeed = numb
  335. if aimbothider == true then
  336. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  337. else
  338. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  339. end
  340. else
  341. if aimbothider == true then
  342. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  343. else
  344. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  345. end
  346. end
  347. end)
  348.  
  349.  
  350. local plrsforaim = {}
  351.  
  352.  
  353. Move.Draggable = true
  354. Gui.ResetOnSpawn = false
  355. --Gui.Name = "Chat"
  356. Gui.DisplayOrder = 999
  357. if not game:GetService("CoreGui") then
  358. Gui.Parent = plrs.LocalPlayer.PlayerGui
  359. else
  360. Gui.Parent = game:GetService("CoreGui")
  361. end
  362.  
  363.  
  364.  
  365.  
  366.  
  367. f = {}
  368. local espforlder
  369. local partconverter = Instance.new("Part")
  370.  
  371. f.addesp = function()
  372. pcall(function()
  373. --print("ESP ran")
  374. if espforlder then
  375. espforlder:Destroy()
  376. espforlder = Instance.new("Folder")
  377. espforlder.Parent = game.Workspace.CurrentCamera
  378. else
  379. espforlder = Instance.new("Folder")
  380. espforlder.Parent = game.Workspace.CurrentCamera
  381. end
  382. for i, v in pairs(espforlder:GetChildren()) do
  383. v:Destroy()
  384. end
  385. for _, plr in pairs(plrs:GetChildren()) do
  386. if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
  387. if TeamBased == true then
  388. if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then
  389. local e = espforlder:FindFirstChild(plr.Name)
  390. if not e then
  391. local fold = Instance.new("Folder", espforlder)
  392. fold.Name = plr.Name
  393.  
  394. --partconverter.BrickColor = plr.Team.Color
  395. --local teamc = partconverter.Color
  396. for i, p in pairs(plr.Character:GetChildren()) do
  397. if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then
  398. local urmom = Instance.new("BoxHandleAdornment")
  399. urmom.ZIndex = 10
  400. urmom.AlwaysOnTop = true
  401. urmom.Color3 = espcolor
  402. urmom.Size = p.Size
  403. urmom.Adornee = p
  404. urmom.Name = tick().." Ur mom has big gay"
  405. urmom.Transparency = wallhack_esp_transparency
  406. urmom.Parent = fold
  407.  
  408. end
  409. end
  410. plr.Character.Humanoid.Died:Connect(function()
  411. fold:Destroy()
  412. end)
  413. end
  414. end
  415. else
  416. local e = espforlder:FindFirstChild(plr.Name)
  417. if not e then
  418. local fold = Instance.new("Folder", espforlder)
  419. fold.Name = plr.Name
  420.  
  421. --partconverter.BrickColor = plr.Team.Color
  422. --local teamc = Move.BackgroundColor3
  423. for i, p in pairs(plr.Character:GetChildren()) do
  424. if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then
  425. local urmom = Instance.new("BoxHandleAdornment")
  426. urmom.ZIndex = 10
  427. urmom.AlwaysOnTop = true
  428. urmom.Color3 = espcolor
  429. urmom.Size = p.Size
  430. urmom.Adornee = p
  431. urmom.Name = tick().." Ur mom has big gay"
  432. urmom.Transparency = wallhack_esp_transparency
  433. urmom.Parent = fold
  434. end
  435. end
  436. plr.Character.Humanoid.Died:Connect(function()
  437. fold:Destroy()
  438. end)
  439. end
  440. end
  441.  
  442.  
  443. end
  444. end
  445. end)
  446. end
  447. local uis = game:GetService("UserInputService")
  448. local bringall = false
  449. local hided2 = false
  450. mouse.KeyDown:Connect(function(a)
  451. if a == "t" then
  452. --print("worked1")
  453. f.addesp()
  454. elseif a == gui_hide_button[2] and uis:IsKeyDown(gui_hide_button[1]) then
  455. if hided2 == false then
  456. hided2 = true
  457. autoesp =false
  458. if espforlder then
  459. espforlder:Destroy()
  460. end
  461. Gui.Enabled = false
  462. else
  463. Gui.Enabled = true
  464. hided2 = false
  465. end
  466. elseif a == "u" then
  467. if mouselock == false then
  468. mouselock = true
  469. else
  470. mouselock = false
  471. end
  472. elseif a == "y" then
  473. if aimbothider == false then
  474. aimbothider = true
  475. if aimbothider == true then
  476. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  477. else
  478. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  479. end
  480. else
  481.  
  482. aimbothider = false
  483. if aimbothider == true then
  484. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  485. else
  486. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  487. end
  488. end
  489. if aimbothider == true then
  490. aimbothiderbox.TextColor3 =Color3.fromRGB(11, 255, 19)
  491. else
  492. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)
  493. end
  494. elseif a == "l" then
  495. if autoesp == false then
  496. autoesp = true
  497. else
  498. autoesp = false
  499. end
  500. elseif a == Aim_Assist_Key[2] and uis:IsKeyDown(Aim_Assist_Key[1]) then
  501. if Aim_Assist == true then
  502. Aim_Assist = false
  503. --print("disabled")
  504. else
  505. Aim_Assist = true
  506. end
  507. end
  508. if a == "j" then
  509. if mouse.Target then
  510. mouse.Target:Destroy()
  511. end
  512. end
  513. if a == key then
  514. if switch == false then
  515. switch = true
  516. else
  517. switch = false
  518. if aimatpart ~= nil then
  519. aimatpart = nil
  520. end
  521. end
  522. elseif a == teambasedswitch then
  523. if TeamBased == true then
  524. TeamBased = false
  525. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)
  526. else
  527. TeamBased = true
  528. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)
  529. end
  530. elseif a == aimkey then
  531. if not aimatpart then
  532. local maxangle = math.rad(20)
  533. for i, plr in pairs(plrs:GetChildren()) do
  534. if plr.Name ~= lplr.Name and plr.Character and plr.Character.UpperTorso and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  535. if TeamBased == true then
  536. if plr.Team.Name ~= lplr.Team.Name then
  537. local an = checkfov(plr.Character.UpperTorso)
  538. if an < maxangle then
  539. maxangle = an
  540. aimatpart = plr.Character.UpperTorso
  541. end
  542. end
  543. else
  544. local an = checkfov(plr.Character.UpperTorso)
  545. if an < maxangle then
  546. maxangle = an
  547. aimatpart = plr.Character.UpperTorso
  548. end
  549. --print(plr)
  550. end
  551. local old = aimatpart
  552. plr.Character.Humanoid.Died:Connect(function()
  553. --print("died")
  554. if aimatpart and aimatpart == old then
  555. aimatpart = nil
  556. end
  557. end)
  558.  
  559. end
  560. end
  561. else
  562. aimatpart = nil
  563. canaimat = false
  564. delay(1.1, function()
  565. canaimat = true
  566. end)
  567. end
  568. end
  569. end)
  570.  
  571. function getfovxyz (p0, p1, deg)
  572. local x1, y1, z1 = p0:ToOrientation()
  573. local cf = CFrame.new(p0.p, p1.p)
  574. local x2, y2, z2 = cf:ToOrientation()
  575. local d = math.deg
  576. if deg then
  577. return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
  578. else
  579. return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  580. end
  581. end
  582.  
  583.  
  584. function aimat(part)
  585. if part then
  586. if aimbothider == true or Aim_Assist == true then
  587. cam.CFrame = cam.CFrame:Lerp(CFrame.new(cam.CFrame.p, part.CFrame.p), aimbothiderspeed)
  588. else
  589.  
  590. cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)
  591. end
  592. end
  593. end
  594. function checkfov (part)
  595. local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
  596. local angle = math.abs(fov.X) + math.abs(fov.Y)
  597. return angle
  598. end
  599. pcall(function()
  600. delay(0, function()
  601. while wait(.4) do
  602. if Aim_Assist and not aimatpart and canaimat and lplr.Character and lplr.Character.Humanoid and lplr.Character.Humanoid.Health > 0 then
  603. for i, plr in pairs(plrs:GetChildren()) do
  604.  
  605.  
  606. local minangle = math.rad(5.5)
  607. local lastpart = nil
  608. local function gg(plr)
  609. pcall(function()
  610. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Character.UpperTorso then
  611. local raycasted = false
  612. local cf1 = CFrame.new(cam.CFrame.p, plr.Character.UpperTorso.CFrame.p) * CFrame.new(0, 0, -4)
  613. local r1 = Ray.new(cf1.p, cf1.LookVector * 9000)
  614. local obj, pos = game.Workspace:FindPartOnRayWithIgnoreList(r1, {lplr.Character.UpperTorso})
  615. local dist = (plr.Character.UpperTorso.CFrame.p- pos).magnitude
  616. if dist < 4 then
  617. raycasted = true
  618. end
  619. if raycasted == true then
  620. local an1 = getfovxyz(cam.CFrame, plr.Character.UpperTorso.CFrame)
  621. local an = abs(an1.X) + abs(an1.Y)
  622. if an < minangle then
  623. minangle = an
  624. lastpart = plr.Character.UpperTorso
  625. end
  626. end
  627. end
  628. end)
  629. end
  630. if TeamBased then
  631. if plr.Team.Name ~= lplr.Team.Name then
  632. gg(plr)
  633. end
  634. else
  635. gg(plr)
  636. end
  637. --print(math.deg(minangle))
  638. if lastpart then
  639. aimatpart = lastpart
  640. aimatpart.Parent.Humanoid.Died:Connect(function()
  641. if aimatpart == lastpart then
  642. aimatpart = nil
  643. end
  644. end)
  645.  
  646. end
  647. end
  648. end
  649. end
  650. end)
  651. end)
  652. local oldheadpos
  653. local lastaimapart
  654. game:GetService("RunService").RenderStepped:Connect(function()
  655. espstatustext.Text = "Esp loop :"..tostring(autoesp)
  656. if aimatpart and lplr.Character and lplr.Character.UpperTorso then
  657. if BetterDeathCount and lastaimapart and lastaimapart == aimatpart then
  658. local dist = (oldheadpos - aimatpart.CFrame.p).magnitude
  659. if dist > 40 then
  660. aimatpart = nil
  661. end
  662. end
  663. lastaimapart = aimatpart
  664. oldheadpos = lastaimapart.CFrame.p
  665. do
  666. if aimatpart.Parent == plrs.LocalPlayer.Character then
  667. aimatpart = nil
  668. end
  669. aimat(aimatpart)
  670. pcall(function()
  671. if Aim_Assist == true then
  672. local cf1 = CFrame.new(cam.CFrame.p, aimatpart.CFrame.p) * CFrame.new(0, 0, -4)
  673. local r1 = Ray.new(cf1.p, cf1.LookVector * 1000)
  674. local obj, pos = game.Workspace:FindPartOnRayWithIgnoreList(r1, {lplr.Character.UpperTorso})
  675. local dist = (aimatpart.CFrame.p- pos).magnitude
  676. if obj then
  677. --print(obj:GetFullName())
  678. end
  679. if not obj or dist > 6 then
  680. aimatpart = nil
  681. --print("ooof")
  682. end
  683. canaimat = false
  684. delay(.5, function()
  685. canaimat = true
  686. end)
  687. end
  688. end)
  689. end
  690.  
  691.  
  692.  
  693. end
  694. end)
  695. delay(0, function()
  696. while wait(espupdatetime) do
  697. if autoesp == true then
  698. pcall(function()
  699. f.addesp()
  700. end)
  701. end
  702. end
  703. end)
  704. --warn("loaded")
  705. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement