Advertisement
Pastebloxian

AIMBOT ESP Autistic Devs LEAKED

Apr 20th, 2019
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 27.17 KB | None | 0 0
  1. --Leaked by Typical on v3rm
  2.  
  3.  
  4. _G.idkspeed = 4.5
  5. pcall(function()
  6. local espcolor = Color3.fromRGB(140, 69, 102)
  7. local wallhack_esp_transparency = .4
  8. local gui_hide_button = {Enum.KeyCode.LeftControl, "h"}
  9. local plrs = game:GetService("Players")
  10. local lplr = game:GetService("Players").LocalPlayer
  11. local TeamBased = true ; local teambasedswitch = "o"
  12. local presskeytoaim = true; _G.aimkey = "e"
  13. aimbothider = false; aimbothiderspeed = .5
  14. local Aim_Assist = false ; Aim_Assist_Key = {Enum.KeyCode.LeftControl, "z"}
  15. local espupdatetime = 5; autoesp = false; local charmsesp = true
  16. local movementcounting = false
  17. local usemousemove = true
  18. local ignore = {}
  19.  
  20. local movethemouse = nil --Mouse Move Function.
  21. pcall(function()
  22.     movethemouse = mousemoverel or Input.MoveMouse
  23. end)
  24. local mouselock = false
  25. local canaimat = true
  26. local lockaim = true; lockangle = 20
  27. local ver = "4.1"
  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 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. local AimAt = function(x, y)
  235.    local vps = cam.ViewportSize
  236.    local vpsx = vps.X
  237.    local vpsy = vps.Y
  238.    local screencenterx = vpsx/2
  239.    local screencentery = vpsy/2
  240.    local aimspeed = _G.idkspeed
  241.    local aimatx
  242.    local aimaty
  243.  
  244.    if x ~= 0 then
  245.        if x > screencenterx then
  246.            aimatx = -(screencenterx - x)
  247.            aimatx = aimatx/aimspeed
  248.            if aimatx + screencenterx > screencenterx * 2 then
  249.                aimatx = 0
  250.            end
  251.        end
  252.        if x < screencenterx then
  253.            aimatx = x - screencenterx
  254.            aimatx = aimatx/aimspeed
  255.            if aimatx + screencenterx < 0 then
  256.                aimatx = 0
  257.            end
  258.        end
  259.    end
  260.  
  261.    if y ~= 0 then
  262.        if y > screencentery then
  263.            aimaty = -(screencentery - y)
  264.            aimaty = aimaty/aimspeed
  265.            if aimaty + screencentery > screencentery * 2 then
  266.                aimaty = 0
  267.            end
  268.        end
  269.        if y < screencentery then
  270.            aimaty = y - screencentery
  271.            aimaty = aimaty/aimspeed
  272.            if aimaty + screencentery < 0 then
  273.                aimaty = 0
  274.            end
  275.        end
  276.    end
  277.    return aimatx, aimaty
  278. end
  279. -- Scripts:
  280. hided = false
  281. hide.MouseButton1Click:Connect(function()
  282.     if hided == false then
  283.         hided = true
  284.         Main:TweenPosition(UDim2.new(0, 0, -1.5, 0))
  285.     else
  286.         hided = false
  287.         Main:TweenPosition(startpos)
  288.     end
  289. end)
  290.  
  291.  
  292. aimbothiderbox.FocusLost:Connect(function()
  293.     local numb = tonumber(aimbothiderbox.Text)
  294.     if aimbothider == true then
  295.         aimbothiderbox.TextColor3 =Color3.fromRGB(11, 255, 19)
  296.     else
  297.         aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)
  298.     end
  299.     if numb ~= nil then
  300.         aimbothiderspeed = numb
  301.         if aimbothider == true then
  302.             aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  303.         else
  304.             aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  305.         end
  306.     else
  307.         if aimbothider == true then
  308.             aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  309.         else
  310.             aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  311.         end
  312.     end
  313. end)
  314.  
  315.  
  316. local plrsforaim = {}
  317.  
  318.  
  319. Move.Draggable = true
  320. Gui.ResetOnSpawn = false
  321. --Gui.Name = "Chat"
  322. Gui.DisplayOrder = 999
  323. pcall(function()
  324. if not game:GetService("CoreGui") then
  325.     Gui.Parent = plrs.LocalPlayer.PlayerGui
  326. else
  327.     Gui.Parent = game:GetService("CoreGui")
  328. end
  329. end)
  330. local espheadthing
  331. do
  332. local BillboardGui = Instance.new("BillboardGui")
  333. local PName = Instance.new("TextLabel")
  334. local Pdist = Instance.new("TextLabel")
  335. local ImageLabel = Instance.new("ImageLabel")
  336. local ImageLabel_2 = Instance.new("ImageLabel")
  337. --Properties:
  338. --BillboardGui.Parent = game.Workspace.Part
  339. BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  340. BillboardGui.AlwaysOnTop = true
  341. BillboardGui.LightInfluence = 0
  342. BillboardGui.Size = UDim2.new(0, 100, 0, 46)
  343. BillboardGui.Name = "headoverthing"
  344. PName.Name = "PName"
  345. PName.Parent = BillboardGui
  346. PName.BackgroundColor3 = espcolor
  347. PName.BackgroundTransparency = 0.55000001192093
  348. PName.BorderSizePixel = 0
  349. PName.Size = UDim2.new(0, 100, 0, 23)
  350. PName.Font = Enum.Font.SourceSans
  351. PName.Text = "urmom"
  352. PName.TextColor3 = Color3.new(0, 0, 0)
  353. PName.TextScaled = true
  354. PName.TextSize = 14
  355. PName.TextWrapped = true
  356. st1.Text = uc(aimbotstatus)
  357. Pdist.Name = "Pdist"
  358. Pdist.Parent = BillboardGui
  359. Pdist.AnchorPoint = Vector2.new(0.5, 0)
  360. Pdist.BackgroundColor3 = espcolor
  361. Pdist.BackgroundTransparency = 0.55000001192093
  362. Pdist.BorderSizePixel = 0
  363. Pdist.Position = UDim2.new(0.5, 0, 0.5, 0)
  364. Pdist.Size = UDim2.new(0, 70, 0, 23)
  365. Pdist.Font = Enum.Font.SourceSans
  366. Pdist.Text = "666"
  367. Pdist.TextColor3 = Color3.new(0, 0, 0)
  368. Pdist.TextScaled = true
  369. Pdist.TextSize = 14
  370. Pdist.TextWrapped = true
  371.  
  372. ImageLabel.Parent = BillboardGui
  373. ImageLabel.BackgroundColor3 = Color3.new(0.298039, 1, 0)
  374. ImageLabel.BackgroundTransparency = 1
  375. ImageLabel.BorderColor3 = espcolor
  376. ImageLabel.Position = UDim2.new(1, -15, 0.5, 0)
  377. ImageLabel.Rotation = 180
  378. ImageLabel.Size = UDim2.new(0, 15, 0, 23)
  379. ImageLabel.Image = "rbxassetid://2832171824"
  380. ImageLabel.ImageColor3 = espcolor
  381. ImageLabel.ImageTransparency = 0.55000001192093
  382.  
  383. ImageLabel_2.Parent = BillboardGui
  384. ImageLabel_2.BackgroundColor3 = espcolor
  385. ImageLabel_2.BackgroundTransparency = 1
  386. ImageLabel_2.BorderColor3 = Color3.new(0.298039, 1, 0)
  387. ImageLabel_2.Position = UDim2.new(0, 0, 0.5, 0)
  388. ImageLabel_2.Rotation = 180
  389. ImageLabel_2.Size = UDim2.new(0, 15, 0, 23)
  390. ImageLabel_2.Image = "rbxassetid://2832177613"
  391. ImageLabel_2.ImageColor3 = espcolor
  392. ImageLabel_2.ImageTransparency = 0.55000001192093
  393. espheadthing = BillboardGui
  394. end
  395.  
  396.  
  397.  
  398. f = {}
  399. f.UpdateHeadUI = function(v)
  400.    
  401.        
  402.             if v.Adornee and v.Adornee ~= nil then
  403.                 local destr = false
  404.                 if TeamBased then
  405.                     destr = true
  406.                     local plr = plrs:GetPlayerFromCharacter(v.Adornee.Parent)
  407.                     if plr and plr.Team and plr.Team.Name ~= lplr.Team.Name then
  408.                         destr = false
  409.                     end
  410.                 end
  411.                 if lightesp == true then
  412.                     v.Pdist.TextColor3 = Color3.new(1,1,1)
  413.                     v.PName.TextColor3 = Color3.new(1,1,1)
  414.                 else
  415.                     v.Pdist.TextColor3 = Color3.new(0,0,0)
  416.                     v.PName.TextColor3 = Color3.new(0,0,0)
  417.                 end
  418.                 local d = math.floor((cam.CFrame.p - v.Adornee.CFrame.p).magnitude)
  419.                 v.Pdist.Text = tostring(d)
  420.                 if d < 14 then
  421.                     v.Enabled = false
  422.                 else
  423.                     v.Enabled = true
  424.                 end
  425.                 v.StudsOffset = Vector3.new(0,.6+d/14,0)
  426.                 if destr then
  427.                     v:Destroy()
  428.                 end
  429.             else
  430.                 v:Destroy()
  431.             end
  432.        
  433.    
  434. end
  435. st1.Text = uc(aimbotstatus)
  436. local espforlder
  437. local partconverter = Instance.new("Part")
  438. --local headsupdatelist = {}
  439. st1_3.FocusLost:connect(function()
  440.     if tonumber(st1_3.Text) then
  441.         bspeed = tonumber(st1_3.Text)
  442.     else
  443.        
  444.     end
  445. end)
  446. f.addesp = function()
  447.     pcall(function()
  448.     --print("ESP ran")
  449.     if espforlder then
  450.         espforlder:Destroy()
  451.         espforlder = Instance.new("Folder")
  452.         espforlder.Parent = game.Workspace.CurrentCamera
  453.     else
  454.         espforlder = Instance.new("Folder")
  455.         espforlder.Parent = game.Workspace.CurrentCamera
  456.     end
  457.     for i, v in pairs(espforlder:GetChildren()) do
  458.         v:Destroy()
  459.     end
  460.     for _, plr in pairs(plrs:GetChildren()) do
  461.         if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
  462.             if TeamBased == true then
  463.                
  464.                 if plr.Team.Name ~= plrs.LocalPlayer.Team.Name  then
  465.                     pcall(function()
  466.                     local e = espforlder:FindFirstChild(plr.Name)
  467.                     if not e then
  468.                         local fold = Instance.new("Folder", espforlder)
  469.                         fold.Name = plr.Name
  470.                        
  471.                         --partconverter.BrickColor = plr.Team.Color
  472.                         --local teamc = partconverter.Color
  473.                         for i, p in pairs(plr.Character:GetChildren()) do
  474.                             if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then
  475.                                 if charmsesp then
  476.                                 local urmom = Instance.new("BoxHandleAdornment")
  477.                                 urmom.ZIndex = 10
  478.                                 urmom.AlwaysOnTop = true
  479.                                 urmom.Color3 = espcolor
  480.                                 urmom.Size = p.Size
  481.                                 urmom.Adornee = p
  482.                                 urmom.Name = tick().." Ur mom has big gay"
  483.                                 urmom.Transparency = wallhack_esp_transparency
  484.                                 urmom.Parent = fold
  485.                                 if p.Name == "Head" then
  486.                                     local th = p:FindFirstChild("headoverthing")
  487.                                     if not th then
  488.                                         local ht = espheadthing:Clone()
  489.                                         ht.PName.Text = p.Parent.Name
  490.                                         ht.Adornee = p
  491.                                         --table.insert(headsupdatelist, ht)
  492.                                         delay(0, function()
  493.                                             while wait(0.08) and plr and p do
  494.                                                 f.UpdateHeadUI(ht)
  495.                                             end
  496.                                         end)
  497.                                         ht.Parent = p
  498.                                     end
  499.                                 end
  500.                                 end
  501.                             end
  502.                         end
  503.                         plr.Character.Humanoid.Died:Connect(function()
  504.                             fold:Destroy()
  505.                         end)
  506.                        
  507.                     end
  508.                     end)
  509.                 end
  510.             else
  511.                 local e = espforlder:FindFirstChild(plr.Name)
  512.                 if not e then
  513.                     local fold = Instance.new("Folder", espforlder)
  514.                         fold.Name = plr.Name
  515.                        
  516.                         --partconverter.BrickColor = plr.Team.Color
  517.                         --local teamc = Move.BackgroundColor3
  518.                         for i, p in pairs(plr.Character:GetChildren()) do
  519.                             if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then
  520.                                 pcall(function()
  521.                                 if charmsesp then
  522.                                 local urmom = Instance.new("BoxHandleAdornment")
  523.                                 urmom.ZIndex = 10
  524.                                 urmom.AlwaysOnTop = true
  525.                                 urmom.Color3 = espcolor
  526.                                 urmom.Size = p.Size
  527.                                 urmom.Adornee = p
  528.                                 urmom.Name = tick().." Ur mom has big gay"
  529.                                 urmom.Transparency = wallhack_esp_transparency
  530.                                 urmom.Parent = fold
  531.                                 end
  532.                                 if p.Name == "Head" then
  533.                                     local th = p:FindFirstChild("headoverthing")
  534.                                     if not th then
  535.                                         local ht = espheadthing:Clone()
  536.                                         ht.PName.Text = p.Parent.Name
  537.                                         ht.Adornee = p
  538.                                         delay(0, function()
  539.                                             while wait(0.08) and plr and p do
  540.                                                 f.UpdateHeadUI(ht)
  541.                                             end
  542.                                         end)
  543.                                         --table.insert(headsupdatelist, ht)
  544.                                         ht.Parent = p
  545.                                     end
  546.                                 end
  547.                                 end)
  548.                             end
  549.                         end
  550.                         plr.Character.Humanoid.Died:Connect(function()
  551.                             fold:Destroy()
  552.                         end)
  553.                 end
  554.             end
  555.            
  556.            
  557.         end
  558.     end
  559.     end)
  560. end
  561.  
  562. local uis = game:GetService("UserInputService")
  563. local bringall = false
  564. local hided2 = false
  565. local upping = false
  566. local downing = false
  567. local toros = false
  568. mouse.KeyDown:Connect(function(a)
  569.     if a == _G.Aimkey and uis:IsKeyDown(Enum.KeyCode.LeftControl) then
  570.         if toros == true then
  571.             toros = false
  572.             if aimatpart then
  573.                 aimatpart = aimatpart.Parent:FindFirstChild("Head")
  574.             end
  575.         else
  576.             toros = true
  577.             if aimatpart then
  578.                 aimatpart = aimatpart.Parent:FindFirstChild("HumanoidRootPart")
  579.             end
  580.         end
  581.     end
  582.     if a == _G.aimkey and not uis:IsKeyDown(Enum.KeyCode.LeftControl) then
  583.         --print("abc")
  584.         if not aimatpart then
  585.             local maxangle = math.rad(lockangle)
  586.             for i, plr in pairs(plrs:GetChildren()) do
  587.                 if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 then
  588.                     if TeamBased == true then
  589.                         if plr.Team.Name ~= lplr.Team.Name then
  590.                             local an = checkfov(plr.Character.Head)
  591.                             if an < maxangle then
  592.                                 maxangle = an
  593.                                 if not toros then
  594.                                     aimatpart = plr.Character.Head
  595.                                 else
  596.                                     aimatpart = plr.Character:FindFirstChild("HumanoidRootPart")
  597.                                 end
  598.                             end
  599.                         end
  600.                     else
  601.                         local an = checkfov(plr.Character.Head)
  602.                             if an < maxangle then
  603.                                 maxangle = an
  604.                                 if not toros then
  605.                                     aimatpart = plr.Character.Head
  606.                                 else
  607.                                     aimatpart = plr.Character:FindFirstChild("HumanoidRootPart")
  608.                                 end
  609.                             end
  610.                             --print(plr)
  611.                     end
  612.                     local old = aimatpart
  613.                     plr.Character.Humanoid.Died:Connect(function()
  614.                         --print("died")
  615.                         if aimatpart and aimatpart == old then
  616.                             aimatpart = nil
  617.                         end
  618.                     end)
  619.                    
  620.                 end
  621.             end
  622.         else
  623.             aimatpart = nil
  624.             canaimat = false
  625.             delay(1.1, function()
  626.                 canaimat = true
  627.             end)
  628.         end
  629.     end
  630.     if a == "t" then
  631.         --print("worked1")
  632.         f.addesp()
  633.     elseif a == gui_hide_button[2] and uis:IsKeyDown(gui_hide_button[1]) then
  634.         if hided2 == false then
  635.             hided2 = true
  636.             autoesp =false
  637.             if espforlder then
  638.                 espforlder:Destroy()
  639.             end
  640.             Gui.Enabled = false
  641.         else
  642.             Gui.Enabled = true
  643.             hided2 = false
  644.         end
  645.            
  646.     elseif a == "y" then
  647.         if aimbothider == false then
  648.             aimbothider = true
  649.             if aimbothider == true then
  650.             aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  651.         else
  652.             aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  653.         end
  654.         else
  655.            
  656.             aimbothider = false
  657.             if aimbothider == true then
  658.             aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  659.         else
  660.             aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  661.         end
  662.         end
  663.         if aimbothider == true then
  664.             aimbothiderbox.TextColor3 =Color3.fromRGB(11, 255, 19)
  665.         else
  666.             aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)
  667.         end
  668.     elseif a == "l" then
  669.         if not uis:IsKeyDown(Enum.KeyCode.LeftControl) then
  670.             if autoesp == false then
  671.                 autoesp = true
  672.             else
  673.                 autoesp = false
  674.             end
  675.         else
  676.             if lightesp == true then
  677.                 lightesp = false
  678.             else
  679.                 lightesp = true
  680.             end
  681.         end
  682.     elseif a == "]" then
  683.         upping = true
  684.         downing = false
  685.     elseif a== "[" then
  686.         downing = true
  687.         upping = false
  688.     elseif a == Aim_Assist_Key[2] and uis:IsKeyDown(Aim_Assist_Key[1]) then
  689.         if Aim_Assist == true then
  690.             Aim_Assist = false
  691.             --print("disabled")
  692.         else
  693.             Aim_Assist = true
  694.         end
  695.     end
  696.     if a == "j" then
  697.         if mouse.Target then
  698.             mouse.Target:Destroy()
  699.         end
  700.     end
  701.     if a == _G.aimkey and not uis:IsKeyDown(Enum.KeyCode.LeftControl) then
  702.         if switch == false then
  703.             switch = true
  704.         else
  705.             switch = false
  706.             if aimatpart ~= nil then
  707.                 aimatpart = nil
  708.             end
  709.         end
  710.     elseif a == "b" and uis:IsKeyDown(Enum.KeyCode.LeftControl) and not uis:IsKeyDown(Enum.KeyCode.R) then
  711.         if movementcounting then
  712.             movementcounting = false
  713.         else
  714.             movementcounting = true
  715.         end
  716.     elseif a == teambasedswitch then
  717.         if TeamBased == true then
  718.             TeamBased = false
  719.             teambasedstatus.Text = "Team Based: "..tostring(TeamBased)
  720.         else
  721.             TeamBased = true
  722.             teambasedstatus.Text = "Team Based: "..tostring(TeamBased)
  723.         end
  724.     elseif a == "b" and uis:IsKeyDown(Enum.KeyCode.LeftControl) and uis:IsKeyDown(Enum.KeyCode.R) then
  725.         ballisticsboost = 0
  726.     end
  727. end)
  728.  
  729. function getfovxyz (p0, p1, deg)
  730.     local x1, y1, z1 = p0:ToOrientation()
  731.     local cf = CFrame.new(p0.p, p1.p)
  732.     local x2, y2, z2 = cf:ToOrientation()
  733.     local d = math.deg
  734.     if deg then
  735.         return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
  736.     else
  737.         return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  738.     end
  739. end
  740.  
  741. local function inlos(p, ...) -- In line of site?
  742.    return #cam:GetPartsObscuringTarget({p}, {cam, lplr.Character, ...}) == 0
  743. end
  744. local xdistancetohead, ydistancetohead = 0,0
  745. local aimedcount = 1
  746. local aimat = function(part)
  747.     if part then
  748.         aimedcount = aimedcount+1
  749.         --print(part)
  750.         local d = (cam.CFrame.p - part.CFrame.p).magnitude
  751.         local calculatedrop
  752.         local timetoaim = 0
  753.         local pos2 = Vector3.new()
  754.         if movementcounting == true then
  755.             timetoaim = d/bspeed
  756.             pos2 = part.Velocity * timetoaim
  757.         end
  758.         local minuseddrop = (ballisticsboost+50)/50
  759.         if ballisticsboost ~= 0 then
  760.             calculatedrop = d - (d/minuseddrop)
  761.            
  762.         else
  763.             calculatedrop = 0
  764.         end
  765.         --print(calculatedrop)
  766.         local addative = Vector3.new()
  767.         if movementcounting then
  768.             addative = pos2
  769.         end
  770.         local aimatposition = (addative + part.CFrame.p+ Vector3.new(0, calculatedrop, 0))
  771.         local cf = CFrame.new(cam.CFrame.p, aimatposition)
  772.         if movethemouse and usemousemove then
  773.            local player  = lplr
  774.            local screensizex = mouse.ViewSizeX
  775.            local screensizey = mouse.ViewSizeY
  776.            local midx = mouse.X--screensizex/2
  777.            local midy = mouse.Y--screensizey/2
  778.            local mousex = mouse.X
  779.            local mousey = mouse.Y
  780.            local moveamountx = midx - mousex
  781.            local moveamounty = midy - mousey
  782.            movethemouse(moveamountx, moveamounty)
  783.            local camera = cam
  784.            local newmousex = mouse.X
  785.            local newmousey = mouse.Y
  786.            local closestplayer = game.Players:GetPlayerFromCharacter(part.Parent)
  787.            if player.Character.Humanoid.Health > 0 then
  788.                 local p = camera:WorldToScreenPoint(aimatposition)
  789.                 xdistancetohead, ydistancetohead = AimAt(p.X, p.Y + 30)
  790.                 --print(xdistancetohead)
  791.                 xdistancetohead, ydistancetohead = xdistancetohead/uis.MouseDeltaSensitivity, ydistancetohead/uis.MouseDeltaSensitivity
  792.             end
  793.         else
  794.             if aimbothider == true or Aim_Assist == true then
  795.                 cam.CFrame = cam.CFrame:Lerp(cf, aimbothiderspeed)
  796.             else
  797.                 cam.CFrame = cf
  798.             end
  799.         end
  800.         --print(cf)
  801.     end
  802. end
  803. function checkfov (part)
  804.     local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
  805.     local angle = math.abs(fov.X) + math.abs(fov.Y)
  806.     return angle
  807. end
  808. pcall(function()
  809.     delay(0, function()
  810.         while wait(.25) do
  811.             if Aim_Assist and not aimatpart and canaimat and lplr.Character and lplr.Character.Humanoid and lplr.Character.Humanoid.Health > 0 then
  812.                 for i, plr in pairs(plrs:GetChildren()) do
  813.                    
  814.                    
  815.                         local minangle = math.rad(lockangle)
  816.                         local lastpart = nil
  817.                         local function gg(plr)
  818.                             pcall(function()
  819.                             if plr.Name ~= lplr.Name and plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Character.Head then
  820.                                 local raycasted = false
  821.                                 local disttohead = (cam.CFrame.p-plr.Character.Head.CFrame.p).magnitude + 5
  822.                                 local cf1 = CFrame.new(cam.CFrame.p, plr.Character.Head.CFrame.p) * CFrame.new(0, 0, -4)
  823.                                 local r1 = Ray.new(cf1.p, cf1.LookVector * disttohead)
  824.                                 local obj, pos = game.Workspace:FindPartOnRayWithIgnoreList(r1,  {lplr.Character.Head})
  825.                                 local dist = (plr.Character.Head.CFrame.p- pos).magnitude
  826.                                 if dist < 4 then
  827.                                     raycasted = true
  828.                                 end
  829.                                 if raycasted == true then
  830.                                     local an1 = getfovxyz(cam.CFrame, plr.Character.Head.CFrame)
  831.                                     local an = abs(an1.X) + abs(an1.Y)
  832.                                     if an < minangle then
  833.                                         minangle = an
  834.                                         lastpart = plr.Character.Head
  835.                                     end
  836.                                 end
  837.                             end
  838.                             end)
  839.                         end
  840.                         if TeamBased then
  841.                             if plr.Team.Name ~= lplr.Team.Name then
  842.                                 gg(plr)
  843.                             end
  844.                         else
  845.                             gg(plr)
  846.                         end
  847.                         --print(math.deg(minangle))
  848.                         if lastpart then
  849.                             aimatpart = lastpart
  850.                             aimatpart.Parent.Humanoid.Died:Connect(function()
  851.                                 if aimatpart == lastpart then
  852.                                     aimatpart = nil
  853.                                 end
  854.                             end)
  855.                        
  856.                     end
  857.                 end
  858.             end
  859.         end
  860.     end)
  861. end)
  862. local oldheadpos
  863. local lastaimapart
  864. table.insert(ignore, cam)
  865. game:GetService("RunService").RenderStepped:Connect(function(dt)
  866.     --print(xdistancetohead, ydistancetohead)
  867.     if aimatpart and movethemouse and usemousemove then
  868.         movethemouse(xdistancetohead, ydistancetohead)
  869.     end
  870.     if uis:IsKeyDown(Enum.KeyCode.RightBracket) or uis:IsKeyDown(Enum.KeyCode.LeftBracket) then
  871.         if upping then
  872.             ballisticsboost = ballisticsboost + dt/1.9
  873.         elseif downing then
  874.             ballisticsboost = ballisticsboost - dt/1.9
  875.         end
  876.     end
  877.     if movementcounting then
  878.         st1_2.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  879.         st1_2.Text = "Current ballistics: "..tostring(math.floor(ballisticsboost*10)/10)
  880.     else
  881.         st1_2.TextColor3 = Color3.new(1,0,0)
  882.     end
  883.     espstatustext.Text = "Esp loop :"..tostring(autoesp)
  884.     if aimatpart and lplr.Character and lplr.Character.Head then
  885.         if BetterDeathCount and lastaimapart and lastaimapart == aimatpart then
  886.             local dist = (oldheadpos - aimatpart.CFrame.p).magnitude
  887.             if dist > 40 then
  888.                 aimatpart = nil
  889.             end
  890.         end
  891.         lastaimapart = aimatpart
  892.         oldheadpos = lastaimapart.CFrame.p
  893.         do
  894.             if aimatpart.Parent == plrs.LocalPlayer.Character then
  895.                 aimatpart = nil
  896.             end
  897.             aimat(aimatpart)
  898.             pcall(function()
  899.                 if Aim_Assist == true then
  900.                     local disttohead = (cam.CFrame.p-aimatpart.CFrame.p).magnitude + 5
  901.                     local cf1 = CFrame.new(cam.CFrame.p, aimatpart.CFrame.p) * CFrame.new(0, 0, -4)
  902.                     local r1 = Ray.new(cf1.p, cf1.LookVector * disttohead)
  903.                     local obj, pos = game.Workspace:FindPartOnRayWithIgnoreList(r1,  {lplr.Character.Head, unpack(ignore)})
  904.                     if workspace.CurrentCamera:IsAncestorOf(obj) then
  905.                         table.insert(ignore, obj)
  906.                         table.insert(ignore, obj.Parent)
  907.                     end
  908.                     local dist = (aimatpart.CFrame.p- pos).magnitude
  909.                     if obj then
  910.                         --print(obj:GetFullName())
  911.                     end
  912.                     if not obj or dist > 6 then
  913.                         aimatpart = nil
  914.                         --print("ooof")
  915.                     end
  916.                     canaimat = false
  917.                     delay(.5, function()
  918.                         canaimat = true
  919.                     end)
  920.                 end
  921.             end)
  922.         end
  923.        
  924.        
  925.        
  926.     end
  927. end)
  928.  
  929.  
  930. delay(0, function()
  931.     while wait(espupdatetime) do
  932.         if autoesp == true then
  933.             pcall(function()
  934.             f.addesp()
  935.             end)
  936.         end
  937.     end
  938. end)
  939. warn("loaded")
  940. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement