Advertisement
Okb00mer

Untitled

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