Advertisement
zayzaaa2030

Untitled

Oct 8th, 2022
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1.  
  2. local Aiming = loadstring(game:HttpGet("https://pastebin.com/raw/jLzYCFGS", true))()
  3. Aiming.TeamCheck(false)
  4.  
  5.  
  6. local Workspace = game:GetService("Workspace")
  7. local Players = game:GetService("Players")
  8. local RunService = game:GetService("RunService")
  9. local UserInputService = game:GetService("UserInputService")
  10.  
  11.  
  12. local LocalPlayer = Players.LocalPlayer
  13. local Mouse = LocalPlayer:GetMouse()
  14. local CurrentCamera = Workspace.CurrentCamera
  15.  
  16. local DaHoodSettings = {
  17. SilentAim = true,
  18. AimLock = false,
  19. Prediction = 0.14,
  20. AimLockKeybind = Enum.KeyCode.E
  21. }
  22. getgenv().DaHoodSettings = DaHoodSettings
  23.  
  24.  
  25. function Aiming.Check()
  26. -------------
  27. if not (Aiming.Enabled == true and Aiming.Selected ~= LocalPlayer and Aiming.SelectedPart ~= nil) then
  28. return false
  29. end
  30.  
  31. -- // Check if downed
  32. local Character = Aiming.Character(Aiming.Selected)
  33. local KOd = Character:WaitForChild("BodyEffects")["K.O"].Value
  34. local Grabbed = Character:FindFirstChild("GRABBING_CONSTRAINT") ~= nil
  35.  
  36. -- // Check B
  37. if (KOd or Grabbed) then
  38. return false
  39. end
  40.  
  41. -- //
  42. return true
  43. end
  44.  
  45. -- // Hook
  46. local __index
  47. __index = hookmetamethod(game, "__index", function(t, k)
  48. -- // Check if it trying to get our mouse's hit or target and see if we can use it
  49. if (t:IsA("Mouse") and (k == "Hit" or k == "Target") and Aiming.Check()) then
  50. local SelectedPart = Aiming.SelectedPart
  51.  
  52. -- // Hit/Target
  53. if (DaHoodSettings.SilentAim and (k == "Hit" or k == "Target")) then
  54. -- // Hit to account prediction
  55. local Hit = SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction)
  56.  
  57. -- // Return modded val
  58. return (k == "Hit" and Hit or SelectedPart)
  59. end
  60. end
  61.  
  62. -- // Return
  63. return __index(t, k)
  64. end)
  65. local player = game.Players.LocalPlayer
  66. local mouse = player:GetMouse()
  67.  
  68. mouse.KeyDown:Connect(function(key)
  69.  
  70. if key == "k" then
  71.  
  72.  
  73.  
  74. if DaHoodSettings.SilentAim == false then
  75.  
  76. DaHoodSettings.SilentAim = true
  77.  
  78. else
  79.  
  80. DaHoodSettings.SilentAim = false
  81.  
  82. end
  83.  
  84. end
  85.  
  86.  
  87. end)
  88. -- // Aimlock
  89. RunService:BindToRenderStep("AimLock", 0, function()
  90. if (DaHoodSettings.AimLock and Aiming.Check() and UserInputService:IsKeyDown(DaHoodSettings.AimLockKeybind)) then
  91. -- // Vars
  92. local SelectedPart = Aiming.SelectedPart
  93.  
  94. -- // Hit to account prediction
  95. local Hit = SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction)
  96.  
  97. CurrentCamera.CFrame = CFrame.lookAt(CurrentCamera.CFrame.Position, Hit.Position)
  98. end
  99. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement