vesq_

Untitled

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