Advertisement
lygelz23

FPSGUIV2.4

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