vtrvsted

STREAMABLE

Sep 18th, 2022
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.96 KB | None | 0 0
  1. local Aiming = loadstring(game:HttpGet("https://pastebin.com/raw/SnBTdXsz"))()
  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.157,
  17.     AimLockKeybind = Enum.KeyCode.X
  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. RunService:BindToRenderStep("AimLock", 0, function()
  53.     if (DaHoodSettings.AimLock and Aiming.Check() and UserInputService:IsKeyDown(DaHoodSettings.AimLockKeybind)) then
  54.         local SelectedPart = Aiming.SelectedPart
  55.  
  56.         local Hit = SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction)
  57.  
  58.         CurrentCamera.CFrame = CFrame.lookAt(CurrentCamera.CFrame.Position, Hit.Position)
  59.     end
  60. end)
Add Comment
Please, Sign In to add comment