ronbonnybonbonezz

Untitled

Dec 28th, 2022
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. local Aiming = loadstring(game:HttpGet("https://pastebin.com/raw/pUj5gQrh"))()
  2. Aiming.TeamCheck(false)
  3.  
  4. local Workspace = game:GetService("Workspace")
  5. local Players = game:GetService("Players")
  6. local RunService = game:GetService("RunService")
  7. local UserInputService = game:GetService("UserInputService")
  8.  
  9. local LocalPlayer = Players.LocalPlayer
  10. local Mouse = LocalPlayer:GetMouse()
  11. local CurrentCamera = Workspace.CurrentCamera
  12.  
  13. local DaHoodSettings = {
  14. SilentAim = true,
  15. AimLock = false,
  16. Prediction = 0.068,
  17. AimLockKeybind = Enum.KeyCode.J
  18. }
  19. getgenv().DaHoodSettings = DaHoodSettings
  20.  
  21. function Aiming.Check()
  22. if not (Aiming.Enabled == true and Aiming.Selected ~= LocalPlayer and Aiming.SelectedPart ~= nil) then
  23. return false
  24. end
  25.  
  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.  
  30. if (KOd or Grabbed) then
  31. return false
  32. end
  33.  
  34. return true
  35. end
  36.  
  37. local __index
  38. __index = hookmetamethod(game, "__index", function(t, k)
  39. if (t:IsA("Mouse") and (k == "Hit" or k == "Target") and Aiming.Check()) then
  40. local SelectedPart = Aiming.SelectedPart
  41.  
  42. if (DaHoodSettings.SilentAim and (k == "Hit" or k == "Target")) then
  43. local Hit = SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction)
  44.  
  45. return (k == "Hit" and Hit or SelectedPart)
  46. end
  47. end
  48.  
  49. return __index(t, k)
  50. end)
  51.  
  52. local player = game.Players.LocalPlayer
  53. local mouse = player:GetMouse()
  54.  
  55. mouse.KeyDown:Connect(function(key)
  56. if key == "k" then
  57. if Aiming.Enabled == false then
  58. Aiming.Enabled = true
  59. else
  60. Aiming.Enabled = false
  61. end
  62. end
  63. end)
  64.  
  65.  
  66. RunService:BindToRenderStep("AimLock", 0, function()
  67. if (DaHoodSettings.AimLock and Aiming.Check() and UserInputService:IsKeyDown(DaHoodSettings.AimLockKeybind)) then
  68. local SelectedPart = Aiming.SelectedPart
  69.  
  70. local Hit = SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction)
  71.  
  72. CurrentCamera.CFrame = CFrame.lookAt(CurrentCamera.CFrame.Position, Hit.Position)
  73. end
  74. end)
Advertisement
Add Comment
Please, Sign In to add comment