Thecodeeasar

Untitled

Nov 23rd, 2025
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 49.74 KB | None | 0 0
  1. if not LPH_OBFUSCATED then
  2.     getfenv().LPH_NO_VIRTUALIZE = function(f) return f end;
  3. end
  4.  
  5. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xwel33/hud/main/gui"))() --you can go into the github link and copy all of it and modify it for yourself.
  6. local Window = Library:CreateWindow("a", Vector2.new(420, 420), Enum.KeyCode.RightControl) --you can change your UI keybind
  7. local AimingTab = Window:CreateTab("Aiming") --you can rename this tab to whatever you want --you can also change the tabs code, for example "AimingTab" can be changed to "FunnyCoolTab" etc.
  8. local VisualsTab = Window:CreateTab("Visuals") --you can rename this tab to whatever you want --you can also change the tabs code, for example "AimingTab" can be changed to "FunnyCoolTab" etc.
  9. local MiscTab = Window:CreateTab("Misc") --you can rename this tab to whatever you want --you can also change the tabs code, for example "AimingTab" can be changed to "FunnyCoolTab" etc.
  10.  
  11.  
  12.  
  13.    
  14.  
  15. local notificationLibrary = loadstring(game:HttpGet("https://raw.githubusercontent.com/laagginq/ui-libraries/main/xaxas-notification/src.lua"))();
  16. local notifications = notificationLibrary.new({            
  17.     NotificationLifetime = 5,
  18.     NotificationPosition = "Middle",
  19.    
  20.     TextFont = Enum.Font.Code,
  21.     TextColor = Color3.fromRGB(255, 255, 255),
  22.     TextSize = 15,
  23.    
  24.     TextStrokeTransparency = 0,
  25.     TextStrokeColor = Color3.fromRGB(0, 0, 0)
  26. });
  27.  
  28. local AkaliNotif = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/Dynissimo/main/Scripts/AkaliNotif.lua"))();
  29. local ANotify = AkaliNotif.Notify;
  30.  
  31.  
  32. function Kick(Reason)
  33.     game.Players.LocalPlayer:Kick(Reason)
  34. end
  35.  
  36. getgenv().NotiMode = "Roblox"
  37.  
  38. function Notifications(NotiINFO)
  39.     if getgenv().NotiMode == "Roblox" then
  40.         game:GetService("StarterGui"):SetCore("SendNotification",{
  41.             Title = "Blazed", -- Required
  42.             Text = NotiINFO, -- Required
  43.             Icon = "rbxassetid://15115954522" -- Optional
  44.         })
  45.     else
  46.         if getgenv().NotiMode == "Xaxa" then
  47.             notifications:BuildNotificationUI();
  48.             notifications:Notify(NotiINFO);
  49.     else
  50.         if getgenv().NotiMode == "Akali" then
  51.             ANotify({
  52.                 Description = NotiINFO;
  53.                 Title = "Blazed";
  54.                 Duration = 1;
  55.                 });
  56.             else
  57.                 Kick('Blazed | Notification Error, please contact on discord if this continues.')
  58.     end
  59.         end
  60.             end
  61.         end
  62.  
  63.  
  64.  
  65. -- Very Sexy variables :^)
  66. local InputService, TeleportService, RunService, Workspace, Lighting, Players, HttpService, StarterGui, ReplicatedStorage, TweenService, VirtualUser, PathFindingService, Stats = game:GetService("UserInputService"), game:GetService("TeleportService"), game:GetService("RunService"), game:GetService("Workspace"), game:GetService("Lighting"), game:GetService("Players"), game:GetService("HttpService"), game:GetService("StarterGui"), game:GetService("ReplicatedStorage"), game:GetService("TweenService"), game:GetService("VirtualUser"), game:GetService("PathfindingService"), game:GetService("Stats")
  67. local NewVector2, NewVector3, NewCFrame, NewAngle = Vector2.new, Vector3.new, CFrame.new, CFrame.Angles
  68. local NewRGB, NewHex = Color3.fromRGB, Color3.fromHex
  69. local Find, Clear, Sub, Upper, Lower, Insert = table.find, table.clear, string.sub, string.upper, string.lower, table.insert
  70. local Mouse, Camera, LocalPlayer = Players.LocalPlayer:GetMouse(), Workspace.Camera, Players.LocalPlayer
  71. local Huge, Pi, Clamp, Round, Abs, Floor, Random, Sin, Cos, Rad, Halfpi = math.huge, math.pi, math.clamp, math.round, math.abs, math.floor, math.random, math.sin, math.cos, math.rad, math.pi/2
  72. local viewportSize = game.Workspace.Camera.ViewportSize;
  73.  
  74. getgenv().Lock = {
  75.     Enabled = false,
  76.     Mode = "",
  77.     Locking = false,
  78.     Resolver = false,
  79.     LookAt = false,
  80.     ViewAt = false,
  81.     Target = {Player = nil, Part = nil, Position = nil, Angle = 0},
  82.     ClosetPoint = false,
  83.     AntiAimViewer = false,
  84.     AntiCurve = false,
  85.     UnlockOnDeath = false,
  86.     ChatAlerts = false,
  87.     Visualize = {
  88.         Tracer = {false, nil},
  89.         Highlight = nil,
  90.         Dot = false,
  91.         Hitbox = false,
  92.         Strafe = false,
  93.         Notify = false,
  94.         X = 5,
  95.         Y = 8,
  96.         Z = 5,
  97.         TargetUI = nil,
  98.     },
  99.     Target_Strafe = {false, 0, 0, 0},
  100.     Prediction = {
  101.         Part = nil, -- Closest bodypart [Make it just {"HumanoidRootPart"} for just hrp]
  102.         Air = false,
  103.         Amount = 0.13,
  104.         PingBased = false,
  105.     },
  106.     Drawings = {}
  107. }
  108. getgenv().offset = 0.06
  109. local offset = getgenv().offset
  110. -- Functions and Renders :3
  111.     function Lock:GetPlayerStatus(Player)
  112.         if not Player then Player = LocalPlayer end
  113.         return Player.Character and Player.Character:FindFirstChild("Humanoid") and Player.Character.Humanoid.Health > 0 and true or false
  114.     end
  115.     --
  116.     function Lock:GetClosestPlayer()
  117.         local shortestDistance = math.huge
  118.         --  
  119.         local closestPlayer
  120.         for _, Player in pairs(Players:GetPlayers()) do
  121.             if Player ~= LocalPlayer and Lock:GetPlayerStatus(Player) then
  122.                 local pos, OnScreen = Camera:WorldToViewportPoint(Player.Character.HumanoidRootPart.Position)
  123.                 local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(viewportSize.X/2, viewportSize.Y/2 + game:GetService("GuiService"):GetGuiInset().Y)).magnitude
  124.                 --
  125.                 if magnitude < shortestDistance and OnScreen then
  126.                         closestPlayer = Player
  127.                         shortestDistance = magnitude
  128.                     end
  129.                 end
  130.             end
  131.         return closestPlayer
  132.     end
  133.     --
  134.     function Lock:newDrawing(type, prop)
  135.         local obj = Drawing.new(type)
  136.         --
  137.         if prop then
  138.             for i,v in next, prop do
  139.                 obj[i] = v
  140.             end
  141.         end
  142.         return obj  
  143.     end
  144.     --
  145.     function Lock:CalculateAbsolutePosition(Player)
  146.         if Lock:GetPlayerStatus(Player) then
  147.             local root = Player.Character["HumanoidRootPart"]
  148.             --
  149.             local currentPosition = root.Position
  150.             local currentTime = tick()
  151.             --
  152.             Wait()
  153.             --
  154.             local newPosition = root.Position
  155.             local newTime = tick()
  156.             --
  157.             local distanceTraveled = (newPosition - currentPosition)
  158.             --
  159.             local timeInterval = newTime - currentTime
  160.             local velocity = distanceTraveled / timeInterval
  161.             currentPosition = newPosition
  162.             currentTime = newTime
  163.             --
  164.             return velocity
  165.         end
  166.     end
  167.     --
  168.     function Lock:GetTool()
  169.         if LocalPlayer.Character and LocalPlayer.Character:FindFirstChildWhichIsA("Tool") and Lock:GetPlayerStatus() then
  170.             return LocalPlayer.Character:FindFirstChildWhichIsA("Tool")
  171.         end
  172.     end
  173.     --
  174.     function Lock:GetTracerOrigin(Origin)
  175.         if Origin == "Head" then
  176.             return Camera:WorldToViewportPoint(LocalPlayer.Character.Head.Position)
  177.         elseif Origin == "Gun" then
  178.             local Tool = Lock:GetTool()
  179.             if Tool and Tool.Handle ~= nil then
  180.                 return Camera:WorldToViewportPoint(Tool.Handle.Position)
  181.             else
  182.                 return nil
  183.             end
  184.         else
  185.             return Vector2.new(viewportSize.X/2, viewportSize.Y/2 + game:GetService("GuiService"):GetGuiInset().Y)
  186.         end
  187.     end
  188.     -- Drawing and Rendering Everything
  189.     Lock.Drawings.Tracer = Lock:newDrawing("Line", {Visible = false, Color = NewRGB(255, 255, 255), Thickness = 1, ZIndex = 2, Transparency = 1})
  190.     Lock.Drawings.Dot = Lock:newDrawing("Circle", {Filled = true, Visible = false, Color = NewRGB(255, 255, 255), Thickness = 1, ZIndex = 2, Transparency = 1, Radius = 10})
  191.     Lock.Drawings.FOV = Lock:newDrawing("Circle", {Visible = false, Color = NewRGB(255, 255, 255), Thickness = 1, ZIndex = 2, Transparency = 1, Radius = 2})
  192.     --
  193.     Lock.Drawings.FakeHitbox = Instance.new("Part")
  194.     Lock.Drawings.FakeHitbox.Anchored = false
  195.     Lock.Drawings.FakeHitbox.CanCollide = false
  196.     Lock.Drawings.FakeHitbox.CFrame = CFrame.new(9999,9999,9999)
  197.     Lock.Drawings.FakeHitbox.Parent = game.Workspace
  198.     Lock.Drawings.FakeHitbox.Material = Enum.Material.Neon
  199.     Lock.Drawings.FakeHitbox.Color = Color3.fromRGB(255,255,255)
  200.     Lock.Drawings.FakeHitbox.Transparency = 0.8
  201.  
  202.  
  203.  
  204. local highlight = Instance.new("Highlight")
  205.  
  206.  
  207.  
  208. RunService.RenderStepped:Connect(function()
  209.     if Lock.Locking and Lock.Visualize.Highlight then
  210.     highlight.Parent = Lock.Target.Player.Character
  211.     highlight.FillColor = getgenv().fillcolor
  212.     highlight.OutlineColor = getgenv().outlinecolor
  213.     else
  214.         highlight.Parent = game.CoreGui
  215.     end
  216. end)
  217.  
  218.  
  219.  
  220.  
  221.    
  222.  
  223. local gui =
  224. {
  225.     targetui = Instance.new("ScreenGui"),
  226.     Frame = Instance.new("Frame"),
  227.     ImageLabel = Instance.new("ImageLabel"),
  228.     LocalScript = Instance.new("LocalScript"),
  229.     TextLabel = Instance.new("TextLabel"),
  230.     LocalScript_1 = Instance.new("LocalScript"),
  231.     Frame_1 = Instance.new("Frame"),
  232.     TextLabel_1 = Instance.new("TextLabel"),
  233.     LocalScript_2 = Instance.new("LocalScript"),
  234.     Frame_2 = Instance.new("Frame"),
  235.     TextLabel_2 = Instance.new("TextLabel"),
  236.     LocalScript_3 = Instance.new("LocalScript"),
  237.     UIGradient = Instance.new("UIGradient"),
  238.     Shadow = Instance.new("ImageLabel"),
  239.     Gradient = Instance.new("UIGradient"),
  240. }
  241.  
  242.  
  243. gui.targetui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  244. gui.targetui.Name = "targetui"
  245. gui.targetui.Parent = game:GetService("CoreGui")
  246.  
  247. gui.Frame.BorderSizePixel = 0
  248. gui.Frame.Size = UDim2.new(0, 323, 0, 112)
  249. gui.Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  250. gui.Frame.Name = "Frame"
  251. gui.Frame.Position = UDim2.new(0.414371, 0, 0.854945, 0)
  252. gui.Frame.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  253. gui.Frame.Parent = gui.targetui
  254.  
  255. gui.ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  256. gui.ImageLabel.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  257. gui.ImageLabel.Size = UDim2.new(0, 75, 0, 75)
  258. gui.ImageLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  259. gui.ImageLabel.Name = "ImageLabel"
  260. gui.ImageLabel.BackgroundTransparency = 1
  261. gui.ImageLabel.Position = UDim2.new(0.0400908, 0, 0.151078, 0)
  262. gui.ImageLabel.Parent = gui.Frame
  263.  
  264. gui.LocalScript.Name = "LocalScript"
  265. gui.LocalScript.Parent = gui.ImageLabel
  266.  
  267. gui.TextLabel.TextStrokeTransparency = 0
  268. gui.TextLabel.BorderSizePixel = 0
  269. gui.TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  270. gui.TextLabel.Font = Enum.Font.Code
  271. gui.TextLabel.TextSize = 13
  272. gui.TextLabel.Position = UDim2.new(0.321981, 0, 0.3125, 0)
  273. gui.TextLabel.Size = UDim2.new(0, 200, 0, 23)
  274. gui.TextLabel.Name = "TextLabel"
  275. gui.TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
  276. gui.TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  277. gui.TextLabel.Text = "@nil"
  278. gui.TextLabel.BackgroundTransparency = 1
  279. gui.TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  280. gui.TextLabel.Parent = gui.Frame
  281.  
  282. gui.LocalScript_1.Name = "LocalScript"
  283. gui.LocalScript_1.Parent = gui.TextLabel
  284.  
  285. gui.Frame_1.BorderSizePixel = 0
  286. gui.Frame_1.Size = UDim2.new(0, 211, 0, 22)
  287. gui.Frame_1.BorderColor3 = Color3.fromRGB(0, 0, 0)
  288. gui.Frame_1.Name = "Frame"
  289. gui.Frame_1.Position = UDim2.new(0.321981, 0, 0.625, 0)
  290. gui.Frame_1.BackgroundColor3 = Color3.fromRGB(227, 181, 200)
  291. gui.Frame_1.Parent = gui.Frame
  292.  
  293. gui.TextLabel_1.TextStrokeTransparency = 0
  294. gui.TextLabel_1.BorderSizePixel = 0
  295. gui.TextLabel_1.BackgroundColor3 = Color3.fromRGB(227, 181, 200)
  296. gui.TextLabel_1.Font = Enum.Font.Code
  297. gui.TextLabel_1.TextSize = 14
  298. gui.TextLabel_1.Position = UDim2.new(0.0584566, 0, 0, 0)
  299. gui.TextLabel_1.Size = UDim2.new(0, 185, 0, 20)
  300. gui.TextLabel_1.Name = "TextLabel"
  301. gui.TextLabel_1.TextColor3 = Color3.fromRGB(255, 255, 255)
  302. gui.TextLabel_1.BorderColor3 = Color3.fromRGB(0, 0, 0)
  303. gui.TextLabel_1.Text = "Health: nan"
  304. gui.TextLabel_1.BackgroundTransparency = 1
  305. gui.TextLabel_1.Parent = gui.Frame_1
  306.  
  307. gui.LocalScript_2.Name = "LocalScript"
  308. gui.LocalScript_2.Parent = gui.TextLabel_1
  309.  
  310. gui.Frame_2.BorderSizePixel = 0
  311. gui.Frame_2.Size = UDim2.new(0, 323, 0, 2)
  312. gui.Frame_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  313. gui.Frame_2.Name = "Frame"
  314. gui.Frame_2.BackgroundColor3 = Color3.fromRGB(227, 181, 200)
  315. gui.Frame_2.Parent = gui.Frame
  316.  
  317. gui.TextLabel_2.TextStrokeTransparency = 0
  318. gui.TextLabel_2.BorderSizePixel = 0
  319. gui.TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  320. gui.TextLabel_2.Font = Enum.Font.Code
  321. gui.TextLabel_2.TextSize = 18
  322. gui.TextLabel_2.Position = UDim2.new(0.321981, 0, 4.07144, 0)
  323. gui.TextLabel_2.Size = UDim2.new(0, 200, 0, 43)
  324. gui.TextLabel_2.Name = "TextLabel"
  325. gui.TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  326. gui.TextLabel_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  327. gui.TextLabel_2.Text = "nil"
  328. gui.TextLabel_2.BackgroundTransparency = 1
  329. gui.TextLabel_2.TextXAlignment = Enum.TextXAlignment.Left
  330. gui.TextLabel_2.Parent = gui.Frame_2
  331.  
  332. gui.LocalScript_3.Name = "LocalScript"
  333. gui.LocalScript_3.Parent = gui.TextLabel_2
  334.  
  335. gui.UIGradient.Name = "UIGradient"
  336. gui.UIGradient.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0, Color3.fromRGB(50, 50, 50)), ColorSequenceKeypoint.new(1, Color3.fromRGB(170, 170, 170)) }
  337. gui.UIGradient.Rotation = 270
  338. gui.UIGradient.Parent = gui.Frame
  339.  
  340. gui.Shadow.ImageColor3 = Color3.fromRGB(14, 14, 14)
  341. gui.Shadow.ZIndex = 0
  342. gui.Shadow.SliceCenter = Rect.new(18, 18, 20, 20)
  343. gui.Shadow.ScaleType = Enum.ScaleType.Slice
  344. gui.Shadow.AnchorPoint = Vector2.new(0.5, 0.5)
  345. gui.Shadow.Image = "http://www.roblox.com/asset/?id=12194054034"
  346. gui.Shadow.Size = UDim2.new(1, 20, 1, 20)
  347. gui.Shadow.Name = "Shadow"
  348. gui.Shadow.BackgroundTransparency = 1
  349. gui.Shadow.Position = UDim2.new(0.5, 0, 0.5, 0)
  350. gui.Shadow.Parent = gui.Frame
  351.  
  352. gui.Gradient.Name = "Gradient"
  353. gui.Gradient.Rotation = 90
  354. gui.Gradient.Parent = gui.Shadow
  355. gui.Frame.Visible = false
  356.  
  357.     for _, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  358.         if v:IsA("Script") and v.Name ~= "Health" and v.Name ~= "Sound" and v:FindFirstChild("LocalScript") then
  359.             v:Destroy()
  360.         end
  361.     end
  362.     game.Players.LocalPlayer.CharacterAdded:Connect(function(char)
  363.         repeat
  364.             wait()
  365.         until game.Players.LocalPlayer.Character
  366.         char.ChildAdded:Connect(function(child)
  367.             if child:IsA("Script") then
  368.                 wait(0.1)
  369.                 if child:FindFirstChild("LocalScript") then
  370.                     child.LocalScript:FireServer()
  371.                 end
  372.             end
  373.         end)
  374.     end)
  375.            
  376.  
  377.              local Player = game:GetService("Players")["LocalPlayer"];
  378.  
  379.      Player["CharacterAdded"]:connect(function(v)
  380.          repeat wait() until v and v:FindFirstChild("Humanoid")
  381.      for _, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  382.          if v:IsA("Script") and v.Name ~= "Health" and v.Name ~= "Sound" and v:FindFirstChild("LocalScript") then
  383.              v:Destroy()
  384.          end
  385.      end
  386.      game.Players.LocalPlayer.CharacterAdded:Connect(function(char)
  387.          repeat
  388.              wait()
  389.          until game.Players.LocalPlayer.Character
  390.          char.ChildAdded:Connect(function(child)
  391.              if child:IsA("Script") then
  392.                  wait(0.1)
  393.                  if child:FindFirstChild("LocalScript") then
  394.                      child.LocalScript:FireServer()
  395.                  end
  396.              end
  397.          end)
  398.      end)
  399.      end)
  400.  
  401.  
  402.      getgenv().AimPart = "HumanoidRootPart"
  403. getgenv().OldAimPart = "HumanoidRootPart"
  404. getgenv().AimlockKey = "q"
  405. getgenv().AimRadius = 5
  406. getgenv().ThirdPerson = true
  407. getgenv().FirstPerson = true
  408. getgenv().TeamCheck = false
  409. getgenv().PredictMovement = false
  410. getgenv().PredictionVelocity = 7.22
  411.  
  412. getgenv().Smoothness = false
  413. getgenv().SmoothnessAmount = 1
  414. getgenv().EasingStyle = Enum.EasingStyle.Elastic
  415.  
  416. getgenv().Notifications = false
  417.  
  418. getgenv().AutoPrediction = false
  419. getgenv().UnlockOnDeath = false
  420. getgenv().Shake = false
  421. getgenv().ShakePower = 0
  422.  
  423. local Players, Uis, RService, SGui = game:GetService"Players", game:GetService"UserInputService", game:GetService"RunService", game:GetService"StarterGui";
  424. local Client, Mouse, Camera, CF, RNew, Vec3, Vec2 = Players.LocalPlayer, Players.LocalPlayer:GetMouse(), workspace.CurrentCamera, CFrame.new, Ray.new, Vector3.new, Vector2.new;
  425. local Aimlock, MousePressed, CanNotify = true, false, false;
  426. local AimlockTarget
  427. local OldPre;
  428.  
  429.  
  430.  
  431. getgenv().WorldToViewportPoint = function(P)
  432.     return Camera:WorldToViewportPoint(P)
  433. end
  434.  
  435. getgenv().WorldToScreenPoint = function(P)
  436.     return Camera.WorldToScreenPoint(Camera, P)
  437. end
  438.  
  439. getgenv().GetObscuringObjects = function(T)
  440.     if T and T:FindFirstChild(getgenv().AimPart) and Client and Client.Character:FindFirstChild("Head") then
  441.         local RayPos = workspace:FindPartOnRay(RNew(
  442.             T[getgenv().AimPart].Position, Client.Character.Head.Position)
  443.         )
  444.         if RayPos then return RayPos:IsDescendantOf(T) end
  445.     end
  446. end
  447.  
  448. getgenv().GetNearestTarget = function()
  449.     local players = {}
  450.     local PLAYER_HOLD  = {}
  451.     local DISTANCES = {}
  452.     for i, v in pairs(Players:GetPlayers()) do
  453.         if v ~= Client then
  454.             table.insert(players, v)
  455.         end
  456.     end
  457.     for i, v in pairs(players) do
  458.         if v.Character ~= nil then
  459.             local AIM = v.Character:FindFirstChild("Head")
  460.             if getgenv().TeamCheck == true and v.Team ~= Client.Team then
  461.                 local DISTANCE = (v.Character:FindFirstChild("Head").Position - game.Workspace.CurrentCamera.CFrame.p).magnitude
  462.                 local RAY = Ray.new(game.Workspace.CurrentCamera.CFrame.p, (Mouse.Hit.p - game.Workspace.CurrentCamera.CFrame.p).unit * DISTANCE)
  463.                 local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  464.                 local DIFF = math.floor((POS - AIM.Position).magnitude)
  465.                 PLAYER_HOLD[v.Name .. i] = {}
  466.                 PLAYER_HOLD[v.Name .. i].dist= DISTANCE
  467.                 PLAYER_HOLD[v.Name .. i].plr = v
  468.                 PLAYER_HOLD[v.Name .. i].diff = DIFF
  469.                 table.insert(DISTANCES, DIFF)
  470.             elseif getgenv().TeamCheck == false and v.Team == Client.Team then
  471.                 local DISTANCE = (v.Character:FindFirstChild("Head").Position - game.Workspace.CurrentCamera.CFrame.p).magnitude
  472.                 local RAY = Ray.new(game.Workspace.CurrentCamera.CFrame.p, (Mouse.Hit.p - game.Workspace.CurrentCamera.CFrame.p).unit * DISTANCE)
  473.                 local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  474.                 local DIFF = math.floor((POS - AIM.Position).magnitude)
  475.                 PLAYER_HOLD[v.Name .. i] = {}
  476.                 PLAYER_HOLD[v.Name .. i].dist= DISTANCE
  477.                 PLAYER_HOLD[v.Name .. i].plr = v
  478.                 PLAYER_HOLD[v.Name .. i].diff = DIFF
  479.                 table.insert(DISTANCES, DIFF)
  480.             end
  481.         end
  482.     end
  483.    
  484.     if unpack(DISTANCES) == nil then
  485.         return nil
  486.     end
  487.    
  488.     local L_DISTANCE = math.floor(math.min(unpack(DISTANCES)))
  489.     if L_DISTANCE > getgenv().AimRadius then
  490.         return nil
  491.     end
  492.    
  493.     for i, v in pairs(PLAYER_HOLD) do
  494.         if v.diff == L_DISTANCE then
  495.             return v.plr
  496.         end
  497.     end
  498.     return nil
  499. end
  500.  
  501.  
  502.  
  503. RService.RenderStepped:Connect(function()
  504.     if getgenv().ThirdPerson == true and getgenv().FirstPerson == true then
  505.         if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude > 1 or (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude <= 1 then
  506.             CanNotify = true
  507.         else
  508.             CanNotify = false
  509.         end
  510.     elseif getgenv().ThirdPerson == true and getgenv().FirstPerson == false then
  511.         if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude > 1 then
  512.             CanNotify = true
  513.         else
  514.             CanNotify = false
  515.         end
  516.     elseif getgenv().ThirdPerson == false and getgenv().FirstPerson == true then
  517.         if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude <= 1 then
  518.             CanNotify = true
  519.         else
  520.             CanNotify = false
  521.         end
  522.     end
  523.     if Aimlock == true and MousePressed == true then
  524.         if AimlockTarget and AimlockTarget.Character and AimlockTarget.Character:FindFirstChild(getgenv().AimPart) then
  525.             if getgenv().FirstPerson == true then
  526.                 if CanNotify == true then
  527.                     if getgenv().PredictMovement == true then
  528.                         if getgenv().Smoothness == true then
  529.                             --// The part we're going to lerp/smoothen \\--
  530.                             local Main = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position + AimlockTarget.Character[getgenv().AimPart].Velocity/PredictionVelocity)
  531.                            
  532.                             --// Making it work \\--
  533.                             Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().SmoothnessAmount, getgenv().EasingStyle , Enum.EasingDirection.InOut)
  534.                         else
  535.                             Camera.CFrame = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position + AimlockTarget.Character[getgenv().AimPart].Velocity/PredictionVelocity)
  536.                         end
  537.                     elseif getgenv().PredictMovement == false then
  538.                         if getgenv().Smoothness == true then
  539.                             --// The part we're going to lerp/smoothen \\--
  540.                             local Main = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position)
  541.  
  542.                             --// Making it work \\--
  543.                             Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().SmoothnessAmount, getgenv().EasingStyle , Enum.EasingDirection.InOut)
  544.                         else
  545.                             Camera.CFrame = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position)
  546.                         end
  547.                     end
  548.                 end
  549.             end
  550.         end
  551.     end
  552.    if getgenv().UnlockOnDeath  == true and AimlockTarget and AimlockTarget.Character:FindFirstChild("Humanoid") then
  553.     if AimlockTarget.StarterPlayer.StarterCharacterScripts.BodyEffects['K.O'] then
  554.         AimlockTarget = nil
  555.        
  556.         if getgenv().Notifications == true then
  557.             Notify({
  558.                 Title = "Blazed",
  559.                 Description = "Unlocked",
  560.                 Duration = 1
  561.             })
  562.         end
  563.         if getgenv().ChatNotis == true then
  564. game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Unlocked","All")
  565.         end
  566.     end
  567. end
  568.  
  569.             if getgenv().Shake == true and AimlockTarget and AimlockTarget.Character then
  570.                 local Main = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position + AimlockTarget.Character[getgenv().AimPart].Velocity/PredictionVelocity +
  571.                 Vector3.new(
  572.                     math.random(-getgenv().ShakePower, getgenv().ShakePower),
  573.                     math.random(-getgenv().ShakePower, getgenv().ShakePower),
  574.                     math.random(-getgenv().ShakePower, getgenv().ShakePower)
  575.                 ) * 0.1)
  576.                 Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().SmoothnessAmount, getgenv().EasingStyle , Enum.EasingDirection.InOut)
  577.             end
  578.  
  579.    if getgenv().AutoPrediction == true then
  580.     pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
  581.     split = string.split(pingvalue,'(')
  582.     ping = tonumber(split[1])
  583. if ping < 30 then
  584.     getgenv().PredictionVelocity = 7.758
  585. elseif ping < 40 then
  586.     getgenv().PredictionVelocity = 7.364
  587. elseif ping < 50 then
  588.     getgenv().PredictionVelocity = 7.456
  589. elseif ping < 60 then
  590.     getgenv().PredictionVelocity = 7.217
  591. elseif ping < 70 then
  592.     getgenv().PredictionVelocity = 6.972
  593. elseif ping < 80 then
  594.     getgenv().PredictionVelocity = 6.782
  595. elseif ping < 90 then
  596.     getgenv().PredictionVelocity = 6.597
  597. elseif ping < 100 then
  598.     getgenv().PredictionVelocity = 3.88
  599. elseif ping < 110 then
  600.     getgenv().PredictionVelocity = 6.099
  601. end
  602. end
  603.  
  604. end)
  605.  
  606. local aimlockSection = AimingTab:CreateSector("Aimlock", "left")  --you can  change the section code, for example "aimlockSection" can be changed to "FunnyCoolSection" etc.
  607. local aimassistSection = AimingTab:CreateSector("Aim Assist", "Right")  --you can  change the section code, for example "aimlockSection" can be changed to "FunnyCoolSection" etc.
  608.  
  609. aimlockSection:AddToggle("Enable", false, function(ale)
  610.     getgenv().AimlockEnabled = ale
  611. end)
  612. aimlockSection:AddButton("Lock Tool", function(IhateGayPeople)
  613.     getgenv().keytoclick = "Q"
  614.     tool = Instance.new("Tool")
  615.     tool.RequiresHandle = false
  616.     tool.Name = "CamlockTool"
  617.     tool.Activated:connect(function()
  618.         if AimlockEnabled then
  619.             Target = not Target
  620.             --
  621.             if AimlockTarget then
  622.                 AimlockTarget = nil
  623.                 MousePressed = false
  624.                 if getgenv().Notifications then
  625.                     Notifications("Unlocked")
  626.                 end
  627.             else
  628.                 if AimlockTarget == nil then
  629.                     local Target;Target = GetNearestTarget()
  630.                     if Target ~= nil then
  631.                         AimlockTarget = Target
  632.                         if getgenv().Notifications then
  633.                             notifications:BuildNotificationUI();
  634.                             Notifications("Locked Onto"..tostring(Aimlock));
  635.                         end
  636.                         MousePressed = true
  637.                     end
  638.                 end
  639.             end
  640.                 end
  641.     end)
  642.     tool.Parent = game.Players.LocalPlayer.Backpack
  643.     wait(0.2)
  644. end)
  645. aimlockSection:AddTextbox("Prediction", "7.72", function(int)
  646.     getgenv().PredictionVelocity = int
  647.     notifications:BuildNotificationUI();
  648.     Notifications("Prediction Changed To: "..tostring(int));
  649. end)
  650. aimlockSection:AddToggle("Ping Based", false, function(pba)
  651.     getgenv().AutoPrediction = pba
  652. end)
  653. aimlockSection:AddDropdown("Hitpart", {"HumanoidRootPart", "UpperTorso", "LowerTorso", "Head"}, "HumanoidRootPart", false, function(dropdown)
  654.     getgenv().AimPart = dropdown
  655. end)
  656. aimlockSection:AddToggle("Notifications", false, function(n)
  657.     getgenv().Notifications = n
  658. end)
  659. aimlockSection:AddToggle("Shake", false, function(shake)
  660.     getgenv().Shake = shake
  661. end)
  662. aimlockSection:AddSlider("Shake Power", 0, 1, 5, 1, function(int)
  663.     getgenv().ShakePower = int * 2
  664. end)
  665. aimlockSection:AddToggle("Smoothness", false, function(sm)
  666.     getgenv().Smoothness = sm
  667. end)
  668. aimlockSection:AddTextbox("Smoothness Power", nil, function(int)
  669.     getgenv().SmoothnessAmount = int
  670.     notifications:BuildNotificationUI();
  671.     Notifications("Smoothness Power Changed To: "..tostring(int));
  672. end)
  673.  
  674. aimassistSection:AddToggle("Enable", false, function(first)
  675. Lock.Enabled = first
  676. end)
  677. aimassistSection:AddDropdown("Mode", {"Target Aim", "Silent Aim"}, "Target Aim", false, function(dropdown)
  678. Lock.Mode = dropdown
  679. end)
  680. aimassistSection:AddButton("Lock Tool", function(IhateGayPeople)
  681.     getgenv().keytoclick = "Q"
  682.     tool = Instance.new("Tool")
  683.     tool.RequiresHandle = false
  684.     tool.Name = "AimAssist Tool"
  685.     tool.Activated:connect(function()
  686.         if Lock.Enabled then
  687.             Lock.Locking = not Lock.Locking
  688.             --
  689.             if Lock.Locking == true then
  690.                 Lock.Target.Player = Lock:GetClosestPlayer()
  691.    
  692.                 -- target ui
  693.                 if Lock.Visualize.TargetUI then
  694.                 gui.TextLabel.Text = "@"..tostring(Lock.Target.Player)
  695.                 gui.TextLabel_2.Text = Lock.Target.Player.DisplayName
  696.                 RunService.RenderStepped:Connect(function()
  697.                 gui.TextLabel_1.Text = "Health: "..tostring(Lock.Target.Player.Character.Humanoid.Health)
  698.                 end)
  699.    
  700.                 local player = Lock.Target.Player
  701.    
  702.                 local userId = Lock.Target.Player.UserId
  703.                 local thumbType = Enum.ThumbnailType.HeadShot
  704.                 local thumbSize = Enum.ThumbnailSize.Size420x420
  705.                 local content, isReady = Players:GetUserThumbnailAsync(userId, thumbType, thumbSize)
  706.    
  707.                 local imageLabel = gui.ImageLabel
  708.                 imageLabel.Image = content
  709.                 imageLabel.Size = UDim2.new(0, 75,0, 75)
  710.                 gui.Frame.Visible = true
  711.             end
  712.                 -- target ui
  713.    
  714.                 if (Lock.Visualize.Notify == true) then
  715.                     if Lock.Mode == "Target Aim" then
  716.                     notifications:BuildNotificationUI();
  717.                     Notifications("Locked onto: ".. Lock.Target.Player.DisplayName);
  718.                     wait(1) print(Lock.Target.Prediction)
  719.                     else
  720.                         notifications:BuildNotificationUI();
  721.                         Notifications("Silent Aim Enabled");
  722.                     end
  723.                 else
  724.             end
  725.                 --
  726.             if Lock.ViewAt then
  727.                 Camera.CameraSubject = Lock.Target.Player.Character.Humanoid
  728.             end    
  729.         else
  730.             if Lock.Visualize.TargetUI then
  731.             gui.Frame.Visible = false
  732.         end
  733.             Lock.Drawings.Dot.Visible = false
  734.             Lock.Drawings.Tracer.Visible = false
  735.             Camera.CameraSubject = LocalPlayer.Character.Humanoid
  736.             LocalPlayer.Character.Humanoid.AutoRotate = true
  737.             --
  738.             if (Lock.Visualize.Notify == true) then
  739.                 if Lock.Mode == "Target Aim" then
  740.                     notifications:BuildNotificationUI();
  741.                     Notifications("Unlocked");
  742.                     else
  743.                         notifications:BuildNotificationUI();
  744.                         Notifications("Silent Aim Disabled");
  745.                     end
  746.             end
  747.         end
  748.         end
  749.     end)
  750.     tool.Parent = game.Players.LocalPlayer.Backpack
  751.     wait(0.2)
  752. end)
  753. aimassistSection:AddToggle("Resolver", false, function(first)
  754.     Lock.Resolver = first
  755. end)
  756. aimassistSection:AddTextbox("Prediction", nil, function(State)
  757.     Lock.Target.Prediction = State
  758. end)
  759. aimassistSection:AddToggle("Notifications", false, function(first)
  760.     Lock.Visualize.Notify = first
  761. end)
  762. aimassistSection:AddToggle("Ping Based", false, function(first)
  763.     Lock.Prediction.PingBased = first
  764. end)
  765. aimassistSection:AddToggle("Air Prediction", false, function(first)
  766.     Lock.Prediction.Air = first
  767. end)
  768. aimassistSection:AddDropdown("Hitpart", {"HumanoidRootPart", "UpperTorso", "LowerTorso", "Head"}, "HumanoidRootPart", false, function(dropdown)
  769. Lock.Prediction.Part = dropdown
  770. end)
  771. aimassistSection:AddToggle("Look At", false, function(first)
  772. Lock.LookAt = first
  773. end)
  774. aimassistSection:AddToggle("View At", false, function(first)
  775. Lock.ViewAt = first
  776. end)
  777.  
  778. local aimbotVisuals = VisualsTab:CreateSector("Aimbot", "left")  --you can  change the section code, for example "aimbotVisuals" can be changed to "FunnyCoolSection" etc.
  779. local ColorToggle = aimbotVisuals:AddToggle("Fake Hitbox", false, function(e)
  780. Lock.Visualize.Hitbox = e
  781. end)
  782.  
  783. ColorToggle:AddColorpicker(Color3.fromRGB(255,0,255), function(ztx)
  784.     Lock.Drawings.FakeHitbox.Color = ztx
  785. end)
  786. aimbotVisuals:AddDropdown("Hitbox Material", {"ForceField", "Neon", "Glass"}, "ForceField", false, function(dropdown)
  787.     Lock.Drawings.FakeHitbox.Material = dropdown
  788. end)
  789. aimbotVisuals:AddSlider("Hitbox Size", 0, 4, 15, 1, function(State)
  790.     Lock.Visualize.X = State
  791.     Lock.Visualize.Y = State
  792.     Lock.Visualize.Z = State
  793. end)
  794. local highlightToggle = aimbotVisuals:AddToggle("Highlight", false, function(e)
  795.     Lock.Visualize.Highlight = e
  796. end)
  797.  
  798. highlightToggle:AddColorpicker(Color3.fromRGB(255,0,255), function(ztx)
  799.     getgenv().fillcolor = ztx
  800. end)
  801. highlightToggle:AddColorpicker(Color3.fromRGB(0,0,0), function(ztx)
  802.     getgenv().outlinecolor = ztx
  803. end)
  804.  
  805. local dotToggle = aimbotVisuals:AddToggle("Dot", false, function(e)
  806.     Lock.Visualize.Dot = e
  807. end)
  808.  
  809. dotToggle:AddColorpicker(Color3.fromRGB(255,0,255), function(ztx)
  810.     Lock.Drawings.Dot.Color = ztx
  811. end)
  812. local tracerToggle = aimbotVisuals:AddToggle("Tracer", false, function(e)
  813.     Lock.Visualize.Tracer[1] = e
  814. end)
  815.  
  816. tracerToggle:AddColorpicker(Color3.fromRGB(255,0,255), function(ztx)
  817.     Lock.Drawings.Tracer.Color = ztx
  818. end)
  819.  
  820. aimbotVisuals:AddDropdown("Tracer Origin", {"Head", "Mouse", "Gun"}, "Gun", true, function(dropdown)
  821.     Lock.Visualize.Tracer[2] = dropdown
  822. end)
  823. getgenv().CFMULTIPLIER = 1
  824. local miscCharacter = MiscTab:CreateSector("Character", "left")  --you can  change the section code, for example "aimbotVisuals" can be changed to "FunnyCoolSection" etc.
  825. miscCharacter:AddToggle("CFrame", false, function(state)
  826.     if state then
  827.         getgenv().cfrene = not getgenv().cfrene
  828.     if getgenv().cfrene == true then
  829.         repeat
  830.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + game.Players.LocalPlayer.Character.Humanoid.MoveDirection * CFMULTIPLIER
  831.             game:GetService("RunService").Stepped:wait()
  832.         until getgenv().cfrene == false
  833. end
  834. end
  835. end)
  836.  
  837. RunService.Heartbeat:Connect(function(FPS)
  838.     if Lock.Drawings.FOV.Visible and Lock.Drawings.FOV.Position ~= NewVector2(viewportSize.X/2, viewportSize.Y/2 + offset) then
  839.         Lock.Drawings.FOV.Position = NewVector2(viewportSize.X/2, viewportSize.Y/2 + offset)
  840.     end
  841.     --  
  842.     if Lock.Locking and Lock.Target.Player and Lock:GetPlayerStatus(Lock.Target.Player) then
  843.         if Lock.Mode == "Silent Aim" then
  844.             Lock.Target.Player = Lock:GetClosestPlayer()
  845.         end
  846.         --
  847.         if Lock.Target.Player and Lock.Target.Player.Character then
  848.             Lock.Target.Status = Lock:GetPlayerStatus(Lock.Target.Player)
  849.             Lock.Target.Velocity = Lock.Resolver and Lock:CalculateAbsolutePosition(Lock.Target.Player) or Lock.Target.Player.Character.HumanoidRootPart.Velocity
  850.            
  851.            
  852.   --ELEGANT WORK ON THIS, DONT DO ANYTHING ELSE!
  853.   if Lock.Prediction.PingBased then
  854.     local pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
  855.     local split = string.split(pingvalue,'(')
  856.     local ping = tonumber(split[1])    
  857.     --[[ elegants
  858.     if ping < 100 then
  859.         Lock.Target.Prediction = 0.141987
  860.     elseif ping < 80 then
  861.         Lock.Target.Prediction = 0.139340
  862.     elseif ping < 70 then
  863.         Lock.Target.Prediction = 0.12533
  864.           elseif ping < 65 then
  865.             Lock.Target.Prediction = 0.1264236
  866.     elseif ping < 50 then
  867.         Lock.Target.Prediction = 0.13544
  868.     elseif ping < 30 then
  869.         Lock.Target.Prediction = 0.11252476
  870.        
  871.         --[[ louls
  872.         if ping < 30 then
  873.             Lock.Target.Prediction = 0.1099
  874.         elseif
  875.             ping < 35 then
  876.                 Lock.Target.Prediction = 0.2294
  877.             elseif
  878.                 ping < 40 then
  879.                     Lock.Target.Prediction = 0.1195
  880.                 elseif
  881.                     ping < 45 then
  882.                         Lock.Target.Prediction = 0.1207
  883.                     elseif
  884.                         ping < 50 then
  885.                             Lock.Target.Prediction = 0.1219
  886.                         elseif      
  887.                             ping < 55 then
  888.                                 Lock.Target.Prediction = 0.1228
  889.                             elseif
  890.                                 ping < 60 then
  891.                                     Lock.Target.Prediction = 0.1237
  892.                                 elseif
  893.                                     ping < 65 then
  894.                                         Lock.Target.Prediction = 0.1264
  895.                                     elseif
  896.                                         ping < 70 then
  897.                                             Lock.Target.Prediction = 0.1291
  898.                                         elseif
  899.                                             ping < 75 then
  900.                                                 Lock.Target.Prediction = 0.1314
  901.                                             elseif
  902.                                                 ping < 80 then
  903.                                                     Lock.Target.Prediction = 0.1337
  904.                                                 elseif
  905.                                                     ping < 85 then
  906.                                                         Lock.Target.Prediction = 0.1343
  907.                                                     elseif
  908.                                                         ping < 90 then
  909.                                                             Lock.Target.Prediction = 0.1349
  910.                                                         elseif
  911.                                                             ping < 95 then
  912.                                                                 Lock.Target.Prediction = 0.1363
  913.                                                             elseif
  914.                                                                 ping < 100 then
  915.                                                                     Lock.Target.Prediction = 0.1378
  916.                                                                 elseif
  917.                                                                     ping < 105 then
  918.                                                                         Lock.Target.Prediction = 0.1418
  919.                                                                     elseif
  920.                                                                         ping < 110 then
  921.                                                                         Lock.Target.Prediction = 0.1459
  922.                                                                         ]]
  923.  
  924.                                                                         -- sosa sets
  925.  
  926.                                                                         if ping < 10 then
  927.                                                                             Lock.Target.Prediction = 0.1112873
  928.                                                                         elseif ping < 20 then
  929.                                                                             Lock.Target.Prediction = 0.1211928
  930.                                                                         elseif ping < 30 then
  931.                                                                             Lock.Target.Prediction = 0.1254263
  932.                                                                         elseif ping < 40 then
  933.                                                                             Lock.Target.Prediction = 0.1314356
  934.                                                                         elseif ping < 50 then
  935.                                                                             Lock.Target.Prediction = 0.1368384
  936.                                                                         elseif ping < 60 then
  937.                                                                             Lock.Target.Prediction = 0.12671983
  938.                                                                         elseif ping < 70 then
  939.                                                                             Lock.Target.Prediction = 0.12862974
  940.                                                                         elseif ping < 80 then
  941.                                                                             Lock.Target.Prediction = 0.13581963
  942.                                                                         elseif ping < 90 then
  943.                                                                             Lock.Target.Prediction = 0.13873952
  944.                                                                         elseif ping < 100 then
  945.                                                                             Lock.Target.Prediction = 0.14173456
  946.                                                                         elseif ping < 110 then
  947.                                                                             Lock.Target.Prediction = 0.14362652
  948.                                                                         elseif ping < 120 then
  949.                                                                             Lock.Target.Prediction = 0.14683943
  950.                                                                         elseif ping < 130 then
  951.                                                                             Lock.Target.Prediction = 0.15175864
  952.                                                                         elseif ping < 140 then
  953.                                                                             Lock.Target.Prediction = 0.15382643
  954.                                                                         elseif ping < 150 then
  955.                                                                             Lock.Target.Prediction = 0.15873582
  956.                                                                         end
  957.                                                                     end
  958.  
  959.                                                                     if Lock.Target_Strafe[1] then
  960.                                                                         Lock.Target.Angle += Lock.Target_Strafe[2]
  961.                                                                         LocalPlayer.Character.HumanoidRootPart.CFrame =
  962.                                                                         Lock.Target.Player.Character.HumanoidRootPart.CFrame
  963.                                                                         * NewAngle(0, Rad(Lock.Target.Angle), 0)
  964.                                                                         * NewCFrame(0, Lock.Target_Strafe[4], Lock.Target_Strafe[3])
  965.                                                                     end
  966.                                                                     --
  967.                                                                     if Lock.LookAt then
  968.                                                                         LocalPlayer.Character.Humanoid.AutoRotate = false
  969.                                                                         local NearestPos = CFrame.new(LocalPlayer.Character.PrimaryPart.Position, Vector3.new(Lock.Target.Player.Character.HumanoidRootPart.Position.X, LocalPlayer.Character.PrimaryPart.Position.Y, Lock.Target.Player.Character.HumanoidRootPart.Position.Z))
  970.                                                                         LocalPlayer.Character:SetPrimaryPartCFrame(NearestPos)
  971.                                                                     end
  972.                                                                     --
  973.                                                                     if Lock.Target.Position then
  974.                                                                         local Position1, OnScreen = Camera:WorldToViewportPoint(Lock.Target.Position)
  975.                                                                         local MousePosition = NewVector2(viewportSize.X/2, viewportSize.Y/2 + game:GetService("GuiService"):GetGuiInset().Y)
  976.                                                                         local Magn = (MousePosition - NewVector2(Position1.X, Position1.Y)).Magnitude
  977.                                                                         --
  978.                                                                         if Lock.Drawings.FOV.Visible then
  979.                                                                             Lock.Drawings.FOV.Position = NewVector2(viewportSize.X/2, viewportSize.Y/2 + game:GetService("GuiService"):GetGuiInset().Y)
  980.                                                                             if (Magn >= Lock.Drawings.FOV.Radius) then Lock.Target.Status = false end
  981.                                                                         end
  982.                                                                         --
  983.                                                                         if Lock.Visualize.Hitbox == true then
  984.                                                                             Lock.Drawings.FakeHitbox.CFrame = NewCFrame(Lock.Target.Position)
  985.                                                                             Lock.Drawings.FakeHitbox.Size = NewVector3(Lock.Visualize.X, Lock.Visualize.Y, Lock.Visualize.Z)
  986.                                                                         else
  987.                                                                             Lock.Drawings.FakeHitbox.CFrame = NewCFrame(999,9999,999)
  988.                                                                         end
  989.                                                                         --
  990.                                                                         if OnScreen then
  991.                                                                             if Lock.Visualize.Tracer[1] then
  992.                                                                                 Lock.Drawings.Tracer.Visible = true
  993.                                                                                 --
  994.                                                                                 if Lock:GetTracerOrigin(Lock.Visualize.Tracer[2]) ~= nil then
  995.                                                                                     local Position2, OnScreen = Lock:GetTracerOrigin(Lock.Visualize.Tracer[2])  
  996.                                                                                     --
  997.                                                                                     if Position2 then
  998.                                                                                         Lock.Drawings.Tracer.From = Vector2.new(Position2.X, Position2.Y)
  999.                                                                                     end
  1000.                                                                                 end
  1001.                                                                                 Lock.Drawings.Tracer.To = Vector2.new(Position1.X, Position1.Y)
  1002.                                                                             end
  1003.                                                                             --
  1004.                                                                             if Lock.Visualize.Dot then
  1005.                                                                                 Lock.Drawings.Dot.Visible = true
  1006.                                                                                 Lock.Drawings.Dot.Position = NewVector2(Position1.X, Position1.Y)
  1007.                                                                             else
  1008.                                                                                 Lock.Drawings.Dot.Visible = false
  1009.                                                                             end
  1010.                                                                         else
  1011.                                                                             Lock.Drawings.Dot.Visible = false
  1012.                                                                             Lock.Drawings.Tracer.Visible = false
  1013.                                                                         end  
  1014.                                                                     end
  1015.                                                                 end
  1016.                                                             end
  1017.                                                         end)
  1018.                                                        
  1019.                                                         if not LPH_OBFUSCATED then
  1020.                                                             getfenv().LPH_NO_VIRTUALIZE = function(f) return f end;
  1021.                                                             end
  1022.                                                             local Old
  1023.                                                             Old = hookmetamethod(game, "__index", LPH_NO_VIRTUALIZE(function(self, k)
  1024.                                                                 if (self:IsA("Mouse") and (k == "Hit" or k == "Target")) and Lock.Locking and Lock.Target.Player then
  1025.                                                                     local Part = Lock.Prediction.Part or "HumanoidRootPart"
  1026.                                                                     if Lock.Prediction.Air == true and Lock.Target.Player.Character.Humanoid.FloorMaterial == Enum.Material.Air then
  1027.                                                                         SilentArg = Lock.Target.Player.Character["LeftFoot"].Position + (Lock.Target.Velocity * Lock.Target.Prediction)
  1028.                                                                     else
  1029.                                                                         SilentArg = Lock.Target.Player.Character[Part].Position + (Lock.Target.Velocity * Lock.Target.Prediction)
  1030.                                                                     end
  1031.                                                                     Lock.Target.Position = SilentArg
  1032.                                                                     --
  1033.                                                                     if Lock.Target.Status == true then  
  1034.                                                                         return (k == "Hit" and NewCFrame(SilentArg))
  1035.                                                                     end
  1036.                                                                 end
  1037.                                                                 return Old(self, k)
  1038.                                                             end))
Add Comment
Please, Sign In to add comment