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