SHOW:
|
|
- or go back to the newest paste.
| 1 | -- // Dependencies | |
| 2 | - | local Aiming = loadstring(game:HttpGet("https://pastebin.com/raw/fKyW0Wfx"))()
|
| 2 | + | local Aiming = loadstring(game:HttpGet("https://pastebin.com/raw/Li9PcEdt"))()
|
| 3 | Aiming.TeamCheck(false) | |
| 4 | ||
| 5 | -- // Services | |
| 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 | -- // Vars | |
| 12 | local LocalPlayer = Players.LocalPlayer | |
| 13 | local Mouse = LocalPlayer:GetMouse() | |
| 14 | local CurrentCamera = Workspace.CurrentCamera | |
| 15 | ||
| 16 | local DaHoodSettings = {
| |
| 17 | SilentAim = true, | |
| 18 | AimLock = true, | |
| 19 | Prediction = 0.165, | |
| 20 | AimLockKeybind = Enum.KeyCode.E | |
| 21 | } | |
| 22 | getgenv().DaHoodSettings = DaHoodSettings | |
| 23 | ||
| 24 | -- // Overwrite to account downed | |
| 25 | function Aiming.Check() | |
| 26 | -- // Check A | |
| 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 | -- // Vars | |
| 51 | local SelectedPart = Aiming.SelectedPart | |
| 52 | ||
| 53 | -- // Hit/Target | |
| 54 | if (DaHoodSettings.SilentAim and (k == "Hit" or k == "Target")) then | |
| 55 | -- // Hit to account prediction | |
| 56 | local Hit = SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction) | |
| 57 | ||
| 58 | -- // Return modded val | |
| 59 | return (k == "Hit" and Hit or SelectedPart) | |
| 60 | end | |
| 61 | end | |
| 62 | ||
| 63 | -- // Return | |
| 64 | return __index(t, k) | |
| 65 | end) | |
| 66 | ||
| 67 | -- // Aimlock | |
| 68 | RunService:BindToRenderStep("AimLock", 0, function()
| |
| 69 | if (DaHoodSettings.AimLock and Aiming.Check() and UserInputService:IsKeyDown(DaHoodSettings.AimLockKeybind)) then | |
| 70 | -- // Vars | |
| 71 | local SelectedPart = Aiming.SelectedPart | |
| 72 | ||
| 73 | -- // Hit to account prediction | |
| 74 | local Hit = SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction) | |
| 75 | ||
| 76 | -- // Set the camera to face towards the Hit | |
| 77 | CurrentCamera.CFrame = CFrame.lookAt(CurrentCamera.CFrame.Position, Hit.Position) | |
| 78 | end | |
| 79 | end) |