Advertisement
oigfngfdgfdgfd

Untitled

Jan 1st, 2023
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.34 KB | None | 0 0
  1. local Aiming = loadstring(game:HttpGet("https://pastebin.com/UigBxn2s"))()
  2. Aiming.TeamCheck(false)
  3.  
  4.  
  5.  
  6. local Workspace = game:GetService("Workspace")
  7.  
  8. local Players = game:GetService("Players")
  9.  
  10. local RunService = game:GetService("RunService")
  11.  
  12. local UserInputService = game:GetService("UserInputService")
  13.  
  14.  
  15.  
  16. local LocalPlayer = Players.LocalPlayer
  17.  
  18. local Mouse = LocalPlayer:GetMouse()
  19.  
  20. local CurrentCamera = Workspace.CurrentCamera
  21.  
  22. function Aiming.Check()
  23.  
  24. if not (Aiming.Enabled == true and Aiming.Selected ~= LocalPlayer and Aiming.SelectedPart ~= nil) then
  25.  
  26. return false
  27.  
  28. end
  29.  
  30. local Character = Aiming.Character(Aiming.Selected)
  31.  
  32. local KOd = Character:WaitForChild("BodyEffects")["K.O"].Value
  33.  
  34. local Grabbed = Character:FindFirstChild("GRABBING_CONSTRAINT") ~= nil
  35.  
  36. if (KOd or Grabbed) then
  37.  
  38. return false
  39.  
  40. end
  41.  
  42. return true
  43.  
  44. end
  45.  
  46.  
  47.  
  48. task.spawn(function()
  49.  
  50. while task.wait() do
  51.  
  52. if DaHoodSettings.Resolver and Aiming.Selected ~= nil and (Aiming.Selected.Character) then
  53.  
  54. local oldVel = game.Players[Aiming.Selected.Name].Character.HumanoidRootPart.Velocity
  55.  
  56. game.Players[Aiming.Selected.Name].Character.HumanoidRootPart.Velocity = Vector3.new(oldVel.X, -0, oldVel.Z)
  57.  
  58. end
  59.  
  60. end
  61.  
  62. end)
  63.  
  64.  
  65.  
  66. local Script = {Functions = {}}
  67.  
  68.  
  69.  
  70. Script.Functions.getToolName = function(name)
  71.  
  72. local split = string.split(string.split(name, "[")[2], "]")[1]
  73.  
  74. return split
  75.  
  76. end
  77.  
  78.  
  79.  
  80. Script.Functions.getEquippedWeaponName = function(player)
  81.  
  82. if (player.Character) and player.Character:FindFirstChildWhichIsA("Tool") then
  83.  
  84. local Tool = player.Character:FindFirstChildWhichIsA("Tool")
  85.  
  86. if string.find(Tool.Name, "%[") and string.find(Tool.Name, "%]") and not string.find(Tool.Name, "Wallet") and not string.find(Tool.Name, "Phone") then
  87.  
  88. return Script.Functions.getToolName(Tool.Name)
  89.  
  90. end
  91.  
  92. end
  93.  
  94. return nil
  95.  
  96. end
  97.  
  98.  
  99.  
  100. game:GetService("RunService").RenderStepped:Connect(function()
  101.  
  102. if Script.Functions.getEquippedWeaponName(game.Players.LocalPlayer) ~= nil then
  103.  
  104. local WeaponSettings = GunSettings[Script.Functions.getEquippedWeaponName(game.Players.LocalPlayer)]
  105.  
  106. if WeaponSettings ~= nil then
  107.  
  108. Aiming.FOV = WeaponSettings.FOV
  109.  
  110. else
  111.  
  112. Aiming.FOV = 5
  113.  
  114. end
  115.  
  116. end
  117.  
  118. end)
  119.  
  120. local __index
  121.  
  122. __index = hookmetamethod(game, "__index", function(t, k)
  123.  
  124. if (t:IsA("Mouse") and (k == "Hit" or k == "Target") and Aiming.Check()) then
  125.  
  126. local SelectedPart = Aiming.SelectedPart
  127.  
  128. if (DaHoodSettings.SilentAim and (k == "Hit" or k == "Target")) then
  129.  
  130. local Hit = SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction)
  131.  
  132. return (k == "Hit" and Hit or SelectedPart)
  133.  
  134. end
  135.  
  136. end
  137.  
  138.  
  139.  
  140. return __index(t, k)
  141.  
  142. end)
  143.  
  144.  
  145.  
  146. RunService:BindToRenderStep("AimLock", 0, function()
  147.  
  148. if (DaHoodSettings.AimLock and Aiming.Check() and UserInputService:IsKeyDown(DaHoodSettings.AimLockKeybind)) then
  149.  
  150. local SelectedPart = Aiming.SelectedPart
  151.  
  152. local Hit = SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction)
  153.  
  154. CurrentCamera.CFrame = CFrame.lookAt(CurrentCamera.CFrame.Position, Hit.Position)
  155.  
  156. end
  157. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement