Advertisement
JackPackS

Untitled

Jun 13th, 2023
747
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.89 KB | None | 0 0
  1. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  2. local Window = Library.CreateLib("APE", "Synapse")
  3.  
  4. local aimbot = Window:NewTab("Aimbot")
  5. local esp = Window:NewTab("ESP")
  6.  
  7. local aimbotSection = aimbot:NewSection("Aimbot")
  8. aimbotSection:NewButton("Aimbot", "", function()
  9.     local dwCamera = workspace.CurrentCamera
  10.     local dwRunService = game:GetService("RunService")
  11.     local dwUIS = game:GetService("UserInputService")
  12.     local dwEntities = game:GetService("Players")
  13.     local dwLocalPlayer = dwEntities.LocalPlayer
  14.     local dwMouse = dwLocalPlayer:GetMouse()
  15.  
  16.     local settings = {
  17.         Aimbot = true,
  18.         Aiming = false,
  19.         Aimbot_AimPart = "Head",
  20.         Aimbot_TeamCheck = true,
  21.         Aimbot_Draw_FOV = true,
  22.         Aimbot_FOV_Radius = 200,
  23.         Aimbot_FOV_Color = Color3.fromRGB(255,255,255)
  24.     }
  25.  
  26.     local fovcircle = Drawing.new("Circle")
  27.     fovcircle.Visible = settings.Aimbot_Draw_FOV
  28.     fovcircle.Radius = settings.Aimbot_FOV_Radius
  29.     fovcircle.Color = settings.Aimbot_FOV_Color
  30.     fovcircle.Thickness = 1
  31.     fovcircle.Filled = false
  32.     fovcircle.Transparency = 1
  33.  
  34.     fovcircle.Position = Vector2.new(dwCamera.ViewportSize.X / 2, dwCamera.ViewportSize.Y / 2)
  35.  
  36.     dwUIS.InputBegan:Connect(function(i)
  37.         if i.UserInputType == Enum.UserInputType.MouseButton3 then
  38.             settings.Aiming = true
  39.         end
  40.     end)
  41.  
  42.     dwUIS.InputEnded:Connect(function(i)
  43.         if i.UserInputType == Enum.UserInputType.MouseButton3 then
  44.             settings.Aiming = false
  45.         end
  46.     end)
  47.  
  48.     dwRunService.RenderStepped:Connect(function()
  49.        
  50.         local dist = math.huge
  51.         local closest_char = nil
  52.  
  53.         if settings.Aiming then
  54.  
  55.             for i,v in next, dwEntities:GetChildren() do
  56.  
  57.                 if v ~= dwLocalPlayer and
  58.                 v.Character and
  59.                 v.Character:FindFirstChild("HumanoidRootPart") and
  60.                 v.Character:FindFirstChild("Humanoid") and
  61.                 v.Character:FindFirstChild("Humanoid").Health > 0 then
  62.  
  63.                     if settings.Aimbot_TeamCheck == true and
  64.                     v.Team ~= dwLocalPlayer.Team or
  65.                     settings.Aimbot_TeamCheck == false then
  66.  
  67.                         local char = v.Character
  68.                         local char_part_pos, is_onscreen = dwCamera:WorldToViewportPoint(char[settings.Aimbot_AimPart].Position)
  69.  
  70.                         if is_onscreen then
  71.  
  72.                             local mag = (Vector2.new(dwMouse.X, dwMouse.Y) - Vector2.new(char_part_pos.X, char_part_pos.Y)).Magnitude
  73.  
  74.                             if mag < dist and mag < settings.Aimbot_FOV_Radius then
  75.  
  76.                                 dist = mag
  77.                                 closest_char = char
  78.  
  79.                             end
  80.                         end
  81.                     end
  82.                 end
  83.             end
  84.  
  85.             if closest_char ~= nil and
  86.             closest_char:FindFirstChild("HumanoidRootPart") and
  87.             closest_char:FindFirstChild("Humanoid") and
  88.             closest_char:FindFirstChild("Humanoid").Health > 0 then
  89.  
  90.                 dwCamera.CFrame = CFrame.new(dwCamera.CFrame.Position, closest_char[settings.Aimbot_AimPart].Position)
  91.             end
  92.         end
  93.     end)
  94. end)
  95.  
  96. local espSection = esp:NewSection("ESP")
  97. espSection:NewButton("ESP", "", function()
  98.     local lplr = game.Players.LocalPlayer
  99.     local camera = game:GetService("Workspace").CurrentCamera
  100.     local CurrentCamera = workspace.CurrentCamera
  101.     local worldToViewportPoint = CurrentCamera.worldToViewportPoint
  102.  
  103.     local HeadOff = Vector3.new(0, 0.5, 0)
  104.     local LegOff = Vector3.new(0,3,0)
  105.  
  106.     for i,v in pairs(game.Players:GetChildren()) do
  107.         local BoxOutline = Drawing.new("Square")
  108.         BoxOutline.Visible = false
  109.         BoxOutline.Color = Color3.new(0,0,0)
  110.         BoxOutline.Thickness = 3
  111.         BoxOutline.Transparency = 1
  112.         BoxOutline.Filled = false
  113.  
  114.         local Box = Drawing.new("Square")
  115.         Box.Visible = false
  116.         Box.Color = Color3.new(1,1,1)
  117.         Box.Thickness = 1
  118.         Box.Transparency = 1
  119.         Box.Filled = false
  120.  
  121.         function boxesp()
  122.             game:GetService("RunService").RenderStepped:Connect(function()
  123.                 if v.Character ~= nil and v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("HumanoidRootPart") ~= nil and v ~= lplr and v.Character.Humanoid.Health > 0 then
  124.                     local Vector, onScreen = camera:worldToViewportPoint(v.Character.HumanoidRootPart.Position)
  125.  
  126.                     local RootPart = v.Character.HumanoidRootPart
  127.                     local Head = v.Character.Head
  128.                     local RootPosition, RootVis = worldToViewportPoint(CurrentCamera, RootPart.Position)
  129.                     local HeadPosition = worldToViewportPoint(CurrentCamera, Head.Position + HeadOff)
  130.                     local LegPosition = worldToViewportPoint(CurrentCamera, RootPart.Position - LegOff)
  131.  
  132.                     if onScreen then
  133.                         BoxOutline.Size = Vector2.new(1000 / RootPosition.Z, HeadPosition.Y - LegPosition.Y)
  134.                         BoxOutline.Position = Vector2.new(RootPosition.X - BoxOutline.Size.X / 2, RootPosition.Y - BoxOutline.Size.Y / 2)
  135.                         BoxOutline.Visible = true
  136.  
  137.                         Box.Size = Vector2.new(1000 / RootPosition.Z, HeadPosition.Y - LegPosition.Y)
  138.                         Box.Position = Vector2.new(RootPosition.X - Box.Size.X / 2, RootPosition.Y - Box.Size.Y / 2)
  139.                         Box.Visible = true
  140.  
  141.                         if v.TeamColor == lplr.TeamColor then
  142.                             BoxOutline.Visible = false
  143.                             Box.Visible = false
  144.                         else
  145.                             BoxOutline.Visible = true
  146.                             Box.Visible = true
  147.                         end
  148.  
  149.                     else
  150.                         BoxOutline.Visible = false
  151.                         Box.Visible = false
  152.                     end
  153.                 else
  154.                     BoxOutline.Visible = false
  155.                     Box.Visible = false
  156.                 end
  157.             end)
  158.         end
  159.         coroutine.wrap(boxesp)()
  160.     end
  161.  
  162.     game.Players.PlayerAdded:Connect(function(v)
  163.         local BoxOutline = Drawing.new("Square")
  164.         BoxOutline.Visible = false
  165.         BoxOutline.Color = Color3.new(0,0,0)
  166.         BoxOutline.Thickness = 3
  167.         BoxOutline.Transparency = 1
  168.         BoxOutline.Filled = false
  169.  
  170.         local Box = Drawing.new("Square")
  171.         Box.Visible = false
  172.         Box.Color = Color3.new(1,1,1)
  173.         Box.Thickness = 1
  174.         Box.Transparency = 1
  175.         Box.Filled = false
  176.  
  177.         function boxesp()
  178.             game:GetService("RunService").RenderStepped:Connect(function()
  179.                 if v.Character ~= nil and v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("HumanoidRootPart") ~= nil and v ~= lplr and v.Character.Humanoid.Health > 0 then
  180.                     local Vector, onScreen = camera:worldToViewportPoint(v.Character.HumanoidRootPart.Position)
  181.  
  182.                     local RootPart = v.Character.HumanoidRootPart
  183.                     local Head = v.Character.Head
  184.                     local RootPosition, RootVis = worldToViewportPoint(CurrentCamera, RootPart.Position)
  185.                     local HeadPosition = worldToViewportPoint(CurrentCamera, Head.Position + HeadOff)
  186.                     local LegPosition = worldToViewportPoint(CurrentCamera, RootPart.Position - LegOff)
  187.  
  188.                     if onScreen then
  189.                         BoxOutline.Size = Vector2.new(1000 / RootPosition.Z, HeadPosition.Y - LegPosition.Y)
  190.                         BoxOutline.Position = Vector2.new(RootPosition.X - BoxOutline.Size.X / 2, RootPosition.Y - BoxOutline.Size.Y / 2)
  191.                         BoxOutline.Visible = true
  192.  
  193.                         Box.Size = Vector2.new(1000 / RootPosition.Z, HeadPosition.Y - LegPosition.Y)
  194.                         Box.Position = Vector2.new(RootPosition.X - Box.Size.X / 2, RootPosition.Y - Box.Size.Y / 2)
  195.                         Box.Visible = true
  196.  
  197.                         if v.TeamColor == lplr.TeamColor then
  198.                             BoxOutline.Visible = false
  199.                             Box.Visible = false
  200.                         else
  201.                             BoxOutline.Visible = true
  202.                             Box.Visible = true
  203.                         end
  204.  
  205.                     else
  206.                         BoxOutline.Visible = false
  207.                         Box.Visible = false
  208.                     end
  209.                 else
  210.                     BoxOutline.Visible = false
  211.                     Box.Visible = false
  212.                 end
  213.             end)
  214.         end
  215.         coroutine.wrap(boxesp)()
  216.     end)
  217. end)
  218.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement