Advertisement
Guest User

Untitled

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