Advertisement
probanana

The Hood best silent aim

Feb 20th, 2022
3,183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.02 KB | None | 0 0
  1. _G.Prediction = ( .18 ) -- [ Lower Prediction: Lower Ping | Higher Prediction: Higher Ping ]
  2.  
  3. _G.FOV = ( 350 )
  4.  
  5. _G.AimKey = ( "c" )
  6.  
  7. --[[
  8. Do not edit anything under this.
  9. ]]
  10.  
  11. local SilentAim = true
  12. local LocalPlayer = game:GetService("Players").LocalPlayer
  13. local Players = game:GetService("Players")
  14. local Mouse = LocalPlayer:GetMouse()
  15. local Camera = game:GetService("Workspace").CurrentCamera
  16. local UIS = game:GetService("UserInputService")
  17. local CanCraftPart = false
  18.  
  19. hookmetamethod = hookmetamethod
  20. Drawing = Drawing
  21. getnamecall_method = getnamecall_method
  22. getnamecallmethod = getnamecallmethod
  23. newcclosure = newcclosure
  24. hide_me = hide_me
  25. getrawmetatable = getrawmetatable
  26. is_protosmasher_caller = is_protosmasher_caller
  27. checkcaller = checkcaller
  28. Cer = Cer
  29. setreadonly = setreadonly
  30. make_writeable = make_writeable
  31.  
  32. local getnamecallmethod = getnamecallmethod or getnamecall_method
  33. local newcclosure = newcclosure or hide_me or function(func)
  34. return func
  35. end
  36. local checkcaller = checkcaller or is_protosmasher_caller or Cer.isCerus
  37. local mt = getrawmetatable(game)
  38. local mt_index, mt_namecall = mt.__index, mt.__namecall
  39. if setreadonly then
  40. setreadonly(mt, false)
  41. elseif make_writeable then
  42. make_writeable(mt, true)
  43. end
  44.  
  45. local FOV_CIRCLE = Drawing.new("Circle")
  46. FOV_CIRCLE.Visible = true
  47. FOV_CIRCLE.Filled = false
  48. FOV_CIRCLE.Thickness = 1
  49. FOV_CIRCLE.Transparency = 1
  50. FOV_CIRCLE.Color = Color3.new(0, 1, 0)
  51. FOV_CIRCLE.Radius = _G.FOV
  52. FOV_CIRCLE.Position = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)
  53.  
  54. Options = {
  55. Torso = "HumanoidRootPart";
  56. Head = "Head";
  57. }
  58.  
  59. local function EyeFrames()
  60. CanCraftPart = true
  61. if CanCraftPart then
  62. local Apple = Instance.new("Part", workspace)
  63. Apple.Name = "Apple"
  64. Apple.Anchored = true
  65. Apple.CanCollide = false
  66. Apple.Size = Vector3.new(1.3,2,1)
  67. Apple.Transparency = 1
  68. end
  69. CanCraftPart = false
  70. end
  71. local function MoveFovCircle()
  72. pcall(function()
  73. local DoIt = true
  74. spawn(function()
  75. while DoIt do task.wait()
  76. FOV_CIRCLE.Position = Vector2.new(Mouse.X, (Mouse.Y + 36))
  77. end
  78. end)
  79. end)
  80. end coroutine.wrap(MoveFovCircle)()
  81.  
  82. Mouse.KeyDown:Connect(function(KeyPressed)
  83. if KeyPressed == (_G.AimKey:lower()) then
  84. if SilentAim == false then
  85. FOV_CIRCLE.Color = Color3.new(0, 1, 0)
  86. SilentAim = true
  87. elseif SilentAim == true then
  88. FOV_CIRCLE.Color = Color3.new(1, 0, 0)
  89. SilentAim = false
  90. end
  91. end
  92. end)
  93. Mouse.KeyDown:Connect(function(Rejoin)
  94. if Rejoin == "=" then
  95. game:GetService("TeleportService"):Teleport(game.PlaceId, LocalPlayer)
  96. end
  97. end)
  98.  
  99. setreadonly(mt, false)
  100. mt.__index = newcclosure(function(self, What)
  101. local Fir = mt_index(self, What)
  102. local Mir = "Hit"
  103. local Tor = "Target"
  104. local Suff = "TargetPoint"
  105. local Jun = "UnitRay"
  106. local Corr = Mouse
  107. if self == Corr and (What == Mir or What == Tor) then
  108. if SilentAim then
  109. EyeFrames()
  110. local TorsoWasHere = workspace:FindFirstChild("Apple")
  111. local Distance = 9e9
  112. local Target = nil
  113. for _, v in pairs(Players:GetPlayers()) do
  114. if v ~= LocalPlayer and v.Character and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Humanoid") and v.Character:FindFirstChild("Humanoid").Health > 0 then
  115. local Enemy = v.Character
  116. local CastingFrom = CFrame.new(Camera.CFrame.Position, Enemy[Options.Torso].CFrame.Position) * CFrame.new(0, 0, -4)
  117. local RayCast = Ray.new(CastingFrom.Position, CastingFrom.LookVector * 9000)
  118. local World, ToSpace = workspace:FindPartOnRayWithIgnoreList(RayCast, {LocalPlayer.Character:FindFirstChild("Head")})
  119. local RootWorld = (Enemy[Options.Torso].CFrame.Position - ToSpace).magnitude
  120. if RootWorld < 4 then
  121. local RootPartPosition, Visible = Camera:WorldToScreenPoint(Enemy[Options.Torso].Position)
  122. if Visible then
  123. local Real_Magnitude = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(RootPartPosition.X, RootPartPosition.Y)).Magnitude
  124. if Real_Magnitude < Distance and Real_Magnitude < FOV_CIRCLE.Radius then
  125. Distance = Real_Magnitude
  126. Target = Enemy
  127. end
  128. end
  129. end
  130. end
  131. end
  132.  
  133. TorsoWasHere.Size = Vector3.new(Target[Options.Torso].Size)
  134. TorsoWasHere.CFrame = Target[Options.Torso].CFrame
  135. local StartTick = tick()
  136. TorsoWasHere.Position = Target[Options.Torso].Position
  137. local Initial_PartPos = TorsoWasHere.Position task.wait()
  138. TorsoWasHere.Position = Target[Options.Torso].Position
  139. local ChangeInDisplacement = Target[Options.Torso].Position - Initial_PartPos
  140. local deltaTime = (tick() - StartTick)
  141. local Real_Velocity = (ChangeInDisplacement / deltaTime)
  142. local Predicted_Position = Target[Options.Torso].Position + (Real_Velocity * _G.Prediction + Vector3.new(0,-1,0))
  143.  
  144. if Target then
  145. Fir = TorsoWasHere.CFrame + (Real_Velocity * _G.Prediction + Vector3.new(0,-1,0))
  146. end
  147. if What == "X" then
  148. Fir = UIS:GetMouseLocation().X
  149. end
  150. if What == "Y" then
  151. Fir = UIS:GetMouseLocation().Y
  152. end
  153. if What == Jun then
  154. Fir = Ray.new(self.Origin, (self.Hit - self.Origin).Unit)
  155. end
  156. end
  157. end
  158. return Fir
  159. end)
  160. setreadonly(mt, true)
  161. task.wait(1)
  162. setreadonly(mt, false)
  163. mt.__index = (function(self, What)
  164. local Fitra = mt_index(self, What)
  165. local Mir = "Hit"
  166. local Core = "Target"
  167. local Module = Mouse
  168. if self == Module and (What == Mir or What == Core) then
  169. local Distance = 9e9
  170. local Targete = nil
  171. if SilentAim then
  172. for _, v in pairs(Players:GetPlayers()) do
  173. if v ~= LocalPlayer and v.Character and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Humanoid") and v.Character:FindFirstChild("Humanoid").Health > 0 then
  174. local Enemy = v.Character
  175. local CastingFrom = CFrame.new(Camera.CFrame.Position, Enemy[Options.Torso].CFrame.Position) * CFrame.new(0, 0, -4)
  176. local RayCast = Ray.new(CastingFrom.Position, CastingFrom.LookVector * 9000)
  177. local World, ToSpace = workspace:FindPartOnRayWithIgnoreList(RayCast, {LocalPlayer.Character:FindFirstChild("Head")})
  178. local RootWorld = (Enemy[Options.Torso].CFrame.Position - ToSpace).magnitude
  179. if RootWorld < 4 then
  180. local RootPartPosition, Visible = Camera:WorldToScreenPoint(Enemy[Options.Torso].Position)
  181. if Visible then
  182. local Real_Magnitude = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(RootPartPosition.X, RootPartPosition.Y)).Magnitude
  183. if Real_Magnitude < Distance and Real_Magnitude < FOV_CIRCLE.Radius then
  184. Distance = Real_Magnitude
  185. Targete = Enemy
  186. end
  187. end
  188. end
  189. end
  190. end
  191. end
  192. if Targete ~= nil and Targete[Options.Torso] and Targete:FindFirstChild("Humanoid").Health > 0 then
  193. if SilentAim then
  194. local ShootThis = Targete[Options.Torso]
  195. local Predicted_Position = ShootThis.CFrame + (ShootThis.AssemblyLinearVelocity * _G.Prediction + Vector3.new(0,-1,0))
  196. return ((What == Mir and Predicted_Position) or (What == Core and Predicted_Position))
  197. end
  198. end
  199. end
  200. return Fitra
  201. end)
  202. setreadonly(mt, true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement