hibyeloly

Da Hood (Paid Leaked, Silent Aim, Aimbot)

Mar 2nd, 2024
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.98 KB | None | 0 0
  1. if not game:IsLoaded() then
  2. game.Loaded:Wait()
  3. end
  4.  
  5. getgenv().SilentAimSettings = {
  6. Enabled = true,
  7.  
  8. VisibleCheck = true,
  9. TargetPart = "Head",
  10.  
  11. FOVRadius = 130,
  12. FOVVisible = true,
  13. }
  14.  
  15. local Camera = workspace.CurrentCamera
  16. local Players = game:GetService("Players")
  17. local RunService = game:GetService("RunService")
  18. local GuiService = game:GetService("GuiService")
  19. local UserInputService = game:GetService("UserInputService")
  20. local HttpService = game:GetService("HttpService")
  21.  
  22. local LocalPlayer = Players.LocalPlayer
  23. local Mouse = LocalPlayer:GetMouse()
  24.  
  25. local GetChildren = game.GetChildren
  26. local GetPlayers = Players.GetPlayers
  27. local WorldToScreen = Camera.WorldToScreenPoint
  28. local WorldToViewportPoint = Camera.WorldToViewportPoint
  29. local GetPartsObscuringTarget = Camera.GetPartsObscuringTarget
  30. local FindFirstChild = game.FindFirstChild
  31. local RenderStepped = RunService.RenderStepped
  32. local GuiInset = GuiService.GetGuiInset
  33. local GetMouseLocation = UserInputService.GetMouseLocation
  34.  
  35. local resume = coroutine.resume
  36. local create = coroutine.create
  37.  
  38. local ValidTargetParts = {"Head", "HumanoidRootPart"}
  39. local PredictionAmount = 0.165
  40. local Aiming = false
  41.  
  42. local fov_circle = Drawing.new("Circle")
  43. fov_circle.Thickness = 1
  44. fov_circle.NumSides = 100
  45. fov_circle.Radius = 180
  46. fov_circle.Filled = false
  47. fov_circle.Visible = false
  48. fov_circle.ZIndex = 999
  49. fov_circle.Transparency = 1
  50. fov_circle.Color = Color3.fromRGB(54, 57, 241)
  51.  
  52. local ExpectedArguments = {
  53. FindPartOnRayWithIgnoreList = {
  54. ArgCountRequired = 3,
  55. Args = {
  56. "Instance", "Ray", "table", "boolean", "boolean"
  57. }
  58. },
  59. FindPartOnRayWithWhitelist = {
  60. ArgCountRequired = 3,
  61. Args = {
  62. "Instance", "Ray", "table", "boolean"
  63. }
  64. },
  65. FindPartOnRay = {
  66. ArgCountRequired = 2,
  67. Args = {
  68. "Instance", "Ray", "Instance", "boolean", "boolean"
  69. }
  70. },
  71. Raycast = {
  72. ArgCountRequired = 3,
  73. Args = {
  74. "Instance", "Vector3", "Vector3", "RaycastParams"
  75. }
  76. }
  77. }
  78.  
  79. local function getPositionOnScreen(Vector)
  80. local Vec3, OnScreen = WorldToScreen(Camera, Vector)
  81. return Vector2.new(Vec3.X, Vec3.Y), OnScreen
  82. end
  83.  
  84. local function ValidateArguments(Args, RayMethod)
  85. local Matches = 0
  86. if #Args < RayMethod.ArgCountRequired then
  87. return false
  88. end
  89. for Pos, Argument in next, Args do
  90. if typeof(Argument) == RayMethod.Args[Pos] then
  91. Matches = Matches + 1
  92. end
  93. end
  94. return Matches >= RayMethod.ArgCountRequired
  95. end
  96.  
  97. local function getDirection(Origin, Position)
  98. return (Position - Origin).Unit * 1000
  99. end
  100.  
  101. local function getMousePosition()
  102. return GetMouseLocation(UserInputService)
  103. end
  104.  
  105. local function IsPlayerVisible(Player)
  106. local PlayerCharacter = Player.Character
  107. local LocalPlayerCharacter = LocalPlayer.Character
  108.  
  109. if not (PlayerCharacter or LocalPlayerCharacter) then return end
  110.  
  111. local PlayerRoot = FindFirstChild(PlayerCharacter, SilentAimSettings.TargetPart) or FindFirstChild(PlayerCharacter, "HumanoidRootPart")
  112.  
  113. if not PlayerRoot then return end
  114.  
  115. local CastPoints, IgnoreList = {PlayerRoot.Position, LocalPlayerCharacter, PlayerCharacter}, {LocalPlayerCharacter, PlayerCharacter}
  116. local ObscuringObjects = #GetPartsObscuringTarget(Camera, CastPoints, IgnoreList)
  117.  
  118. return ((ObscuringObjects == 0 and true) or (ObscuringObjects > 0 and false))
  119. end
  120.  
  121. local function getClosestPlayer()
  122. local Closest
  123. local DistanceToMouse
  124. for _, Player in next, GetPlayers(Players) do
  125. if Player == LocalPlayer then continue end
  126.  
  127. local Character = Player.Character
  128. if not Character then continue end
  129.  
  130. if SilentAimSettings.VisibleCheck and not IsPlayerVisible(Player) then continue end
  131.  
  132. local HumanoidRootPart = FindFirstChild(Character, "HumanoidRootPart")
  133. local Humanoid = FindFirstChild(Character, "Humanoid")
  134. if not HumanoidRootPart or not Humanoid or Humanoid and Humanoid.Health <= 0 then continue end
  135.  
  136. local ScreenPosition, OnScreen = getPositionOnScreen(HumanoidRootPart.Position)
  137. if not OnScreen then continue end
  138.  
  139. local Distance = (getMousePosition() - ScreenPosition).Magnitude
  140. if Distance <= (DistanceToMouse or SilentAimSettings.FOVRadius or 2000) then
  141. Closest = (Character[SilentAimSettings.TargetPart])
  142. DistanceToMouse = Distance
  143. end
  144. end
  145. return Closest
  146. end
  147.  
  148. resume(create(function()
  149. RenderStepped:Connect(function()
  150. fov_circle.Visible = SilentAimSettings.FOVVisible
  151. fov_circle.Color = Color3.fromRGB(255, 255, 255)
  152. fov_circle.Radius = SilentAimSettings.FOVRadius
  153. fov_circle.Position = getMousePosition()
  154. end)
  155. end))
  156.  
  157. local aim_c_1
  158. aim_c_1 = UserInputService.InputBegan:Connect(function(input)
  159. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  160. Aiming = true
  161. end
  162. end)
  163.  
  164. local aim_c_2
  165. aim_c_2 = UserInputService.InputEnded:Connect(function(input)
  166. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  167. Aiming = false
  168. end
  169. end)
  170.  
  171. local oldNamecall
  172. oldNamecall = hookmetamethod(game, "__namecall", newcclosure(function(...)
  173. local Method = getnamecallmethod()
  174. local Arguments = {...}
  175. local self = Arguments[1]
  176. if Aiming and self == workspace and not checkcaller() then
  177. if Method == "FindPartOnRayWithIgnoreList" then
  178. if ValidateArguments(Arguments, ExpectedArguments.FindPartOnRayWithIgnoreList) then
  179. local A_Ray = Arguments[2]
  180.  
  181. local HitPart = getClosestPlayer()
  182. if HitPart then
  183. local Origin = A_Ray.Origin
  184. local Direction = getDirection(Origin, HitPart.Position)
  185. Arguments[2] = Ray.new(Origin, Direction)
  186.  
  187. return oldNamecall(unpack(Arguments))
  188. end
  189. end
  190. end
  191. end
  192. return oldNamecall(...)
  193. end))
Add Comment
Please, Sign In to add comment