Advertisement
Honansik

Da Hood Aimlock Script

Jun 15th, 2023
4,076
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.84 KB | None | 0 0
  1. --// this is skidded as i took it from pastebin, i took of KALS from here and put mine instead, if you didnt know KALS is the original skidder not me - edited for super high pings (until 1k) enjoy
  2.     Settings = {
  3.         stupidproarsenallock = {
  4.         Enabled = true,
  5.         Key = "e",
  6.         showdot = true, -- turn this off if you dont want that blue dot, its useful to keep a track of that person who you've aiming.
  7.         airshots = true,
  8.         notifaction = true, -- dont turn this off as it lets you know if it locked/unlocked.
  9.         pingprediction = true,
  10.         FOV = 70, -- keep it untouched which does nothing. instead say in chat "/e fov [number]"
  11.         RESOVLER = true,
  12.         Tracer = false, -- use a esp instead
  13.         TracerColor = Color3.new(0, 255, 238),
  14.         TracerTransparency = 0.75,
  15.         TracerThickness = 5,
  16.         Circles = false, -- use different circle because this sucks
  17.         CircleFOV = 500,
  18.         CircleColor = Color3.new(255, 255, 255),
  19.         CircleThickness = 2,
  20.         CircleFilled = true,
  21.         CircleTransparency = 0.10,
  22.         CircleTransparencyOutline = 0,
  23.         OutlineColor = Color3.new(255, 255, 255),
  24.         Texts = false,
  25.         TextColor = Color3.new(255, 255, 255),
  26.         TextSize = 35,
  27.         TextInput = "",
  28.         Hitbox = false, -- turn this on if you want hitbox
  29.         NoBulletDelay = false, -- broken, use Faded no recoil instead
  30.         Autoclicker = false, -- if you want autoclicker use this
  31.         AutoclickerTime = 0.01,
  32.         AutoclickerKey = "v",
  33.         AnimationPack = false -- error when executing (broken)
  34.  
  35. }
  36. }
  37.  
  38. --[[
  39.     Parts - / HumanoidRootPart / LowerTorso / UpperTorso / Head
  40. ]]
  41.  
  42.         local SelectedPart = "HumanoidRootPart"
  43.         local Prediction = true
  44.         local PredictionValue = 0.132
  45.  
  46.  
  47.  
  48.  local AnchorCount = 0
  49.             local MaxAnchor = 50
  50.  
  51.                 local CC = game:GetService"Workspace".CurrentCamera
  52.                     local Plr;
  53.                         local enabled = false
  54.                             local accomidationfactor = 0.132
  55.                 local mouse = game.Players.LocalPlayer:GetMouse()
  56.  
  57.                             local Inset = game:GetService("GuiService"):GetGuiInset().Y
  58.                 local Line = Drawing.new("Line")
  59.                     local Text = Drawing.new("Text")
  60.                           local Circle = Drawing.new("Circle")
  61.                           local Circle1 = Drawing.new("Circle")
  62.  
  63.  
  64.                            _G.Types = {
  65.             Ball = Enum.PartType.Ball,
  66.             Block = Enum.PartType.Block,
  67.             Cylinder = Enum.PartType.Cylinder
  68.         }
  69.  
  70.                           local placemarker = Instance.new("Part", game.Workspace)
  71.                           placemarker.Shape = _G.Types.Ball
  72.                           placemarker.Material = "ForceField"
  73.                           placemarker.Color = Color3.new(0, 1, 1)
  74.  
  75.     function makemarker(Parent, Adornee, Color, Size, Size2)
  76.         local e = Instance.new("BillboardGui", Parent)
  77.         e.Name = "PP"
  78.         e.Adornee = Adornee
  79.         e.Size = UDim2.new(Size, Size2, Size, Size2)
  80.         e.AlwaysOnTop = Settings.stupidproarsenallock.showdot
  81.         local a = Instance.new("Frame", e)
  82.         if Settings.stupidproarsenallock.showdot == true then
  83.         a.Size = UDim2.new(1, 0, 1, 0)
  84.         else
  85.         a.Size = UDim2.new(0, 0, 0, 0)
  86.         end
  87.         if Settings.stupidproarsenallock.showdot == true then
  88.         a.Transparency = 0
  89.         a.BackgroundTransparency = 0
  90.         else
  91.         a.Transparency = 1
  92.         a.BackgroundTransparency = 1
  93.         end
  94.         a.BackgroundColor3 = Color
  95.         local g = Instance.new("UICorner", a)
  96.         if Settings.stupidproarsenallock.showdot == false then
  97.         g.CornerRadius = UDim.new(0, 0)
  98.         else
  99.         g.CornerRadius = UDim.new(1, 1)
  100.         end
  101.         return(e)
  102.     end
  103.  
  104.  
  105.     local data = game.Players:GetPlayers()
  106.     function noob(player)
  107.         local character
  108.         repeat wait() until player.Character
  109.         local handler = makemarker(guimain, player.Character:WaitForChild(SelectedPart), Color3.fromRGB(0, 255, 229), 0.3, 3)
  110.         handler.Name = player.Name
  111.         player.CharacterAdded:connect(function(Char) handler.Adornee = Char:WaitForChild(SelectedPart) end)
  112.  
  113.  
  114.         spawn(function()
  115.             while wait() do
  116.                 if player.Character then
  117.                 end
  118.             end
  119.         end)
  120.     end
  121.  
  122.     for i = 1, #data do
  123.         if data[i] ~= game.Players.LocalPlayer then
  124.             noob(data[i])
  125.         end
  126.     end
  127.  
  128.     game.Players.PlayerAdded:connect(function(Player)
  129.         noob(Player)
  130.     end)
  131.  
  132.     spawn(function()
  133.         placemarker.Anchored = true
  134.         placemarker.CanCollide = false
  135.         if Settings.stupidproarsenallock.showdot == true then
  136.         placemarker.Size = Vector3.new(11, 11, 11)
  137.         else
  138.         placemarker.Size = Vector3.new(0, 0, 0)
  139.         end
  140.         if Settings.stupidproarsenallock.Hitbox == true then
  141.         placemarker.Transparency = 0.30
  142.         else
  143.         placemarker.Transparency = 1
  144.         end
  145.         if Settings.stupidproarsenallock.showdot then
  146.         makemarker(placemarker, placemarker, Color3.fromRGB(0, 255, 238), 0.80, 0)
  147.         end
  148.     end)
  149.  
  150.     game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
  151.         if k == Settings.stupidproarsenallock.Key and Settings.stupidproarsenallock.Enabled then
  152.             if enabled == true then
  153.                 enabled = false
  154.                 if Settings.stupidproarsenallock.notifaction == true then
  155.                     Plr = getClosestPlayerToCursor()
  156.                 game.StarterGui:SetCore("SendNotification", {
  157.                     Title = "Unlocked";
  158.                     Text = "Point mouse on somebody to lock again",
  159.                     Icon = "http://www.roblox.com/asset/?id=5314810647",
  160.                     Duration = 3
  161.                 })
  162.             end
  163.             else
  164.                 Plr = getClosestPlayerToCursor()
  165.                 enabled = true
  166.                 if Settings.stupidproarsenallock.notifaction == true then
  167.  
  168.                     game.StarterGui:SetCore("SendNotification", {
  169.                         Title = "Locked";
  170.                         Text = "Aimlocked on " .. tostring(Plr.Character.Humanoid.DisplayName),
  171.                         Icon = "http://www.roblox.com/asset/?id=8709610734",
  172.                         Duration = 3
  173.                     })
  174.  
  175.                 end
  176.             end
  177.         end
  178.     end)
  179.  
  180.  
  181.  
  182.     function getClosestPlayerToCursor()
  183.         local closestPlayer
  184.         local shortestDistance = Settings.stupidproarsenallock.FOV
  185.  
  186.         for i, v in pairs(game.Players:GetPlayers()) do
  187.             if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") then
  188.                 local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  189.                 local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  190.                 if magnitude < shortestDistance then
  191.                     closestPlayer = v
  192.                     shortestDistance = magnitude
  193.                 end
  194.             end
  195.         end
  196.         return closestPlayer
  197.     end
  198.  
  199.     local pingvalue = nil;
  200.     local split = nil;
  201.     local ping = nil;
  202.  
  203.     game:GetService"RunService".Stepped:connect(function()
  204.         if enabled and Plr.Character ~= nil and Plr.Character:FindFirstChild("HumanoidRootPart") then
  205.             placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position)
  206.                             local Vector1 = CC:WorldToViewportPoint(Plr.Character.HumanoidRootPart.Position)
  207.             Line.Color = Settings.stupidproarsenallock.TracerColor
  208.                 Line.Transparency = Settings.stupidproarsenallock.TracerTransparency
  209.                 Line.Thickness = Settings.stupidproarsenallock.TracerThickness
  210.                 Line.From = Vector2.new(mouse.X, mouse.Y + Inset)
  211.                 Line.To = Vector2.new(Vector1.X, Vector1.Y)
  212.                 Line.Visible = Settings.stupidproarsenallock.Tracer
  213.                 Text.Position = Vector2.new(mouse.X, mouse.Y + Inset)
  214.                 Text.Visible = Settings.stupidproarsenallock.Texts
  215.                 Text.Center = true
  216.                 Text.Outline = true
  217.                 Text.Font = 1
  218.                 Text.Size = Settings.stupidproarsenallock.TextSize
  219.                 Text.Color = Settings.stupidproarsenallock.TextColor
  220.                 Text.Text = Settings.stupidproarsenallock.TextInput
  221.                 Circle.Position = Vector2.new(mouse.X, mouse.Y + Inset)
  222.                 Circle.Visible = Settings.stupidproarsenallock.Circles
  223.                 Circle.Thickness = 1.5
  224.                 Circle.Thickness = Settings.stupidproarsenallock.CircleThickness
  225.                 Circle.Radius = Settings.stupidproarsenallock.CircleFOV
  226.                 Circle.Color = Settings.stupidproarsenallock.CircleColor
  227.                 Circle.Filled = Settings.stupidproarsenallock.CircleFilled
  228.                 Circle.Transparency = Settings.stupidproarsenallock.CircleTransparency
  229.                 Circle1.Visible = true
  230.                 Circle1.Radius = Settings.stupidproarsenallock.CircleTransparencyOutline
  231.                 Circle1.Position = Vector2.new(mouse.X, mouse.Y + Inset)
  232.                 Circle1.Thickness = 5
  233.                 Circle1.Color = Settings.stupidproarsenallock.OutlineColor
  234.  
  235.         else
  236.                 Circle.Visible = false
  237.                 Line.Visible = false
  238.                 Text.Visible = false
  239.                 Circle1.Visible = false
  240.             placemarker.CFrame = CFrame.new(0, 9999, 0)
  241.         end
  242.         if Settings.stupidproarsenallock.pingprediction == true then -- this is where i put more ping prediction
  243.              pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
  244.              split = string.split(pingvalue,'(')
  245.              ping = tonumber(split[1])
  246. if ping < 1000 then
  247.                 PredictionValue = 0.446
  248. elseif ping < 970 then
  249.                 PredictionValue = 0.438
  250. elseif ping < 940 then
  251.                 PredictionValue = 0.424
  252. elseif ping < 910 then
  253.                 PredictionValue = 0.418
  254. elseif ping < 880 then
  255.                 PredictionValue = 0.406
  256. elseif ping < 850 then
  257.                 PredictionValue = 0.394
  258. elseif ping < 820 then
  259.                 PredictionValue = 0.384
  260. elseif ping < 790 then
  261.                 PredictionValue = 0.376
  262. elseif ping < 760 then
  263.                 PredictionValue = 0.369
  264. elseif ping < 730 then
  265.                 PredictionValue = 0.356
  266. elseif ping < 700 then
  267.                 PredictionValue = 0.344
  268. elseif ping < 670 then
  269.                 PredictionValue = 0.332
  270. elseif ping < 640 then
  271.                 PredictionValue = 0.328
  272. elseif ping < 610 then
  273.                 PredictionValue = 0.314
  274. elseif ping < 580 then
  275.                 PredictionValue = 0.306
  276. elseif ping < 550 then
  277.                 PredictionValue = 0.291
  278. elseif ping < 520 then
  279.                 PredictionValue = 0.284
  280. elseif ping < 490 then
  281.                 PredictionValue = 0.274
  282. elseif ping < 460 then
  283.                 PredictionValue = 0.268
  284. elseif ping < 430 then
  285.                 PredictionValue = 0.254
  286. elseif ping < 400 then
  287.                 PredictionValue = 0.248
  288. elseif ping < 370 then
  289.                 PredictionValue = 0.231
  290. elseif ping < 340 then
  291.                 PredictionValue = 0.226
  292. elseif ping < 310 then
  293.                 PredictionValue = 0.219
  294. elseif ping < 280 then
  295.                 PredictionValue = 0.208
  296. elseif ping < 250 then
  297.                 PredictionValue = 0.196
  298. elseif ping < 220 then
  299.                 PredictionValue = 0.181
  300. elseif ping < 190 then
  301.                 PredictionValue = 0.179
  302. elseif ping < 160 then -- this is where i started putting more
  303.                 PredictionValue = 0.164
  304.             elseif ping < 130 then
  305.                 PredictionValue = 0.151
  306.             elseif ping < 125 then
  307.                 PredictionValue = 0.149
  308.             elseif ping < 110 then
  309.                 PredictionValue = 0.146
  310.             elseif ping < 105 then
  311.                 PredictionValue = 0.138
  312.             elseif ping < 90 then
  313.                 PredictionValue = 0.136
  314.             elseif ping < 80 then
  315.                 PredictionValue = 0.134
  316.             elseif ping < 70 then
  317.                 PredictionValue = 0.131
  318.             elseif ping < 60 then
  319.                 PredictionValue = 0.1229
  320.             elseif ping < 50 then
  321.                 PredictionValue = 0.1225
  322.             elseif ping < 40 then
  323.                 PredictionValue = 0.1256
  324.             end
  325.         end
  326.     end)
  327.  
  328.     local mt = getrawmetatable(game)
  329.     local old = mt.__namecall
  330.     setreadonly(mt, false)
  331.     mt.__namecall = newcclosure(function(...)
  332.         local args = {...}
  333.         if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" and Settings.stupidproarsenallock.Enabled and Plr.Character ~= nil then
  334.  
  335.             -- args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor)
  336.             --[[
  337.             if Settings.stupidproarsenallock.airshots == true then
  338.                 if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
  339.  
  340.                     --// Airshot
  341.                     args[3] = Plr.Character.LeftFoot.Position+(Plr.Character.LeftFoot.Velocity*PredictionValue)
  342.  
  343.                 else
  344.                     args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
  345.  
  346.                 end
  347.             else
  348.     args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
  349.     end
  350.     ]]
  351.     if Prediction == true then
  352.  
  353.     args[3] = Plr.Character[SelectedPart].Position+(Plr.Character[SelectedPart].Velocity*PredictionValue)
  354.  
  355.     else
  356.  
  357.     args[3] = Plr.Character[SelectedPart].Position
  358.  
  359.     end
  360.  
  361.     return old(unpack(args))
  362.     end
  363.     return old(...)
  364.     end)
  365.  
  366.     game:GetService("RunService").RenderStepped:Connect(function()
  367.         if Settings.stupidproarsenallock.RESOVLER == true and Plr.Character ~= nil and enabled and Settings.stupidproarsenallock.Enabled then
  368.         if Settings.stupidproarsenallock.airshots == true and enabled and Plr.Character ~= nil then
  369.  
  370.         if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
  371.  
  372.  
  373.  
  374.         if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  375.         AnchorCount = AnchorCount + 1
  376.         if AnchorCount >= MaxAnchor then
  377.         Prediction = false
  378.         wait(2)
  379.         AnchorCount = 0;
  380.         end
  381.         else
  382.         Prediction = true
  383.         AnchorCount = 0;
  384.         end
  385.  
  386.         SelectedPart = "LeftFoot"
  387.  
  388.         else
  389.  
  390.  
  391.         if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  392.         AnchorCount = AnchorCount + 1
  393.         if AnchorCount >= MaxAnchor then
  394.         Prediction = false
  395.         wait(2)
  396.         AnchorCount = 0;
  397.         end
  398.  
  399.         else
  400.         Prediction = true
  401.         AnchorCount = 0;
  402.         end
  403.  
  404.         SelectedPart = "HumanoidRootPart"
  405.  
  406.         end
  407.         else
  408.  
  409.  
  410.  
  411.         if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  412.         AnchorCount = AnchorCount + 1
  413.         if AnchorCount >= MaxAnchor then
  414.         Prediction = false
  415.         wait(2)
  416.         AnchorCount = 0;
  417.         end
  418.         else
  419.          Prediction = true
  420.          AnchorCount = 0;
  421.         end
  422.         SelectedPart = "HumanoidRootPart"
  423.         end
  424.         else
  425.         SelectedPart = "HumanoidRootPart"
  426.         end
  427.         end)
  428.  
  429.         if Settings.stupidproarsenallock.NoBulletDelay == true then
  430.             local FuckDelay = game:GetService("CorePackages").Packages
  431.             FuckDelay:Destroy()
  432.         end
  433.  
  434.         if Settings.stupidproarsenallock.Autoclicker == true then
  435.             local time = Settings.stupidproarsenallock.AutoclickerTime --decrease if too slow increase if too fast
  436.  
  437.             click = false
  438.             m = game.Players.LocalPlayer:GetMouse()
  439.             m.KeyDown:connect(function(key)
  440.             if key == Settings.stupidproarsenallock.AutoclickerKey then
  441.             if click == true then click = false
  442.             elseif
  443.             click == false then click = true
  444.  
  445.             while click == true do
  446.             wait(time)
  447.             mouse1click()
  448.             end
  449.             end
  450.             end
  451.             end)
  452.         end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement