Advertisement
LokoBurrito

Da Hood AimLock

Oct 10th, 2023 (edited)
1,279
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.20 KB | Gaming | 0 0
  1. -- Da Hood Aimlock -- enjoy!! :) (AIMLOCK KEY IS "E"!!!)
  2. getgenv().SilentAim = true
  3. getgenv().AimLock = true
  4. getgenv().Prediction = 0.165
  5. getgenv().AimLockKeybind = Enum.KeyCode.E
  6. local Aiming = loadstring(game:HttpGet("https://raw.githubusercontent.com/RapperDeluxe/scripts/main/silent%20aim%20module"))()
  7. Aiming.TeamCheck(false)
  8. local Workspace = game:GetService("Workspace")
  9. local Players = game:GetService("Players")
  10. local RunService = game:GetService("RunService")
  11. local UserInputService = game:GetService("UserInputService")
  12. local LocalPlayer = Players.LocalPlayer
  13. local Mouse = LocalPlayer:GetMouse()
  14. local CurrentCamera = Workspace.CurrentCamera
  15. local DaHoodSettings = {
  16.     SilentAim = getgenv().SilentAim,
  17.     AimLock = getgenv().AimLock,
  18.     Prediction = getgenv().Prediction,
  19.     AimLockKeybind = Enum.KeyCode.E
  20. }
  21. getgenv().DaHoodSettings = DaHoodSettings
  22. function Aiming.Check()
  23.     if not (Aiming.Enabled == true and Aiming.Selected ~= LocalPlayer and Aiming.SelectedPart ~= nil) then
  24.         return false
  25.     end
  26.     local Character = Aiming.Character(Aiming.Selected)
  27.     local KOd = Character:WaitForChild("BodyEffects")["K.O"].Value
  28.     local Grabbed = Character:FindFirstChild("GRABBING_CONSTRAINT") ~= nil
  29.     if (KOd or Grabbed) then
  30.         return false
  31.     end
  32.     return true
  33. end
  34. local __index
  35. __index = hookmetamethod(game, "__index", function(t, k)
  36.     if (t:IsA("Mouse") and (k == "Hit" or k == "Target") and Aiming.Check()) then
  37.         local SelectedPart = Aiming.SelectedPart
  38.         if (DaHoodSettings.SilentAim and (k == "Hit" or k == "Target")) then
  39.             local Hit = SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction)
  40.             return (k == "Hit" and Hit or SelectedPart)
  41.         end
  42.     end
  43.     return __index(t, k)
  44. end)
  45. RunService:BindToRenderStep("AimLock", 0, function()
  46.     if (DaHoodSettings.AimLock and Aiming.Check() and UserInputService:IsKeyDown(DaHoodSettings.AimLockKeybind)) then
  47.         local SelectedPart = Aiming.SelectedPart
  48.         local Hit = SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction)
  49.         CurrentCamera.CFrame = CFrame.lookAt(CurrentCamera.CFrame.Position, Hit.Position)
  50.     end
  51. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement