Advertisement
Ritual_x

Best Da Hood Silent Aim Script (LOOKS LEGIT)

Feb 20th, 2023
11,117
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.76 KB | None | 1 0
  1. getgenv().Prediction = ( .1239592 ) -- [ PREDICTION: Lower Prediction: Lower Ping | Higher Prediction: Higher Ping ]
  2.  
  3. getgenv().FOV = ( 150 ) -- [ FOV RADIUS: Increases Or Decreases FOV Radius ]
  4.  
  5. getgenv().AimKey = ( "e" ) -- [ TOGGLE KEY: Toggles Silent Aim On And Off ]
  6.  
  7. getgenv().Notifier = true
  8.  
  9. getgenv().FOV_VISIBLE = true -- [ Self Explanatory ]
  10.  
  11. getgenv().DontShootThesePeople = { -- [ WHITELIST TABLE: List Of Who NOT To Shoot, edit like this. "Contain quotations with their name and then a semi-colon afterwards for each line" ; ]
  12.  
  13. "AimLockPsycho";
  14. "JakeTheMiddleMan";
  15.  
  16. }
  17.  
  18. --[[
  19. Do Not Edit Anything Beyond This Point.
  20. ]]
  21.  
  22. local SilentAim = true
  23. local LocalPlayer = game:GetService("Players").LocalPlayer
  24. local Players = game:GetService("Players")
  25. local Mouse = LocalPlayer:GetMouse()
  26. local Camera = game:GetService("Workspace").CurrentCamera
  27. local connections = getconnections(game:GetService("LogService").MessageOut)
  28. for _, v in ipairs(connections) do
  29. v:Disable()
  30. end
  31.  
  32. getrawmetatable = getrawmetatable
  33. setreadonly = setreadonly
  34. getconnections = getconnections
  35. hookmetamethod = hookmetamethod
  36. getgenv = getgenv
  37. Drawing = Drawing
  38.  
  39. local FOV_CIRCLE = Drawing.new("Circle")
  40. FOV_CIRCLE.Visible = getgenv().FOV_VISIBLE
  41. FOV_CIRCLE.Filled = false
  42. FOV_CIRCLE.Thickness = 1
  43. FOV_CIRCLE.Transparency = 1
  44. FOV_CIRCLE.Color = Color3.new(0, 1, 0)
  45. FOV_CIRCLE.Radius = getgenv().FOV
  46. FOV_CIRCLE.Position = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)
  47.  
  48. local Options = {
  49. Torso = "HumanoidRootPart";
  50. Head = "Head";
  51. }
  52.  
  53. local function MoveFovCircle()
  54. pcall(function()
  55. local DoIt = true
  56. spawn(function()
  57. while DoIt do task.wait()
  58. FOV_CIRCLE.Position = Vector2.new(Mouse.X, (Mouse.Y + 36))
  59. end
  60. end)
  61. end)
  62. end coroutine.wrap(MoveFovCircle)()
  63.  
  64. game.StarterGui:SetCore("SendNotification", {Title = "Silent Aim ON", Text = "TOGGLED", Duration = 5,}) -- initially on.
  65.  
  66. local function ItsOn()
  67. game.StarterGui:SetCore("SendNotification", {Title = "Silent Aim ON", Text = "TOGGLED", Duration = 5,})
  68. end
  69. local function ItsOff()
  70. game.StarterGui:SetCore("SendNotification", {Title = "Silent Aim OFF", Text = "UN-TOGGLED", Duration = 5,})
  71. end
  72.  
  73. Mouse.KeyDown:Connect(function(KeyPressed)
  74. if KeyPressed == (getgenv().AimKey:lower()) then
  75. if SilentAim == false then
  76. FOV_CIRCLE.Color = Color3.new(0, 1, 0)
  77. SilentAim = true
  78. ItsOn()
  79. elseif SilentAim == true then
  80. FOV_CIRCLE.Color = Color3.new(1, 0, 0)
  81. SilentAim = false
  82. ItsOff()
  83. end
  84. end
  85. end)
  86. Mouse.KeyDown:Connect(function(Rejoin)
  87. if Rejoin == "=" then
  88. local LocalPlayer = game:GetService("Players").LocalPlayer
  89. game:GetService("TeleportService"):Teleport(game.PlaceId, LocalPlayer)
  90. end
  91. end)
  92.  
  93. local oldIndex = nil
  94. oldIndex = hookmetamethod(game, "__index", function(self, Index)
  95. if self == Mouse and (Index == "Hit") then
  96. if SilentAim then
  97. local Distance = 9e9
  98. local Target = nil
  99. local Players = game:GetService("Players")
  100. local LocalPlayer = game:GetService("Players").LocalPlayer
  101. local Camera = game:GetService("Workspace").CurrentCamera
  102. for _, v in pairs(Players:GetPlayers()) do
  103. if not table.find(getgenv().DontShootThesePeople, v.Name) then
  104. if v ~= LocalPlayer and v.Character and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Humanoid") and v.Character:FindFirstChild("Humanoid").Health > 0 then
  105. local Enemy = v.Character
  106. local CastingFrom = CFrame.new(Camera.CFrame.Position, Enemy[Options.Torso].CFrame.Position) * CFrame.new(0, 0, -4)
  107. local RayCast = Ray.new(CastingFrom.Position, CastingFrom.LookVector * 9000)
  108. local World, ToSpace = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(RayCast, {LocalPlayer.Character:FindFirstChild("Head")})
  109. local RootWorld = (Enemy[Options.Torso].CFrame.Position - ToSpace).magnitude
  110. if RootWorld < 4 then
  111. local RootPartPosition, Visible = Camera:WorldToScreenPoint(Enemy[Options.Torso].Position)
  112. if Visible then
  113. local Real_Magnitude = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(RootPartPosition.X, RootPartPosition.Y)).Magnitude
  114. if Real_Magnitude < Distance and Real_Magnitude < FOV_CIRCLE.Radius then
  115. Distance = Real_Magnitude
  116. Target = Enemy
  117. end
  118. end
  119. end
  120. end
  121. end
  122. end
  123.  
  124. if Target ~= nil and Target[Options.Torso] and Target:FindFirstChild("Humanoid").Health > 0 then
  125. if SilentAim then
  126. local ShootThis = Target[Options.Torso]
  127. local Predicted_Position = ShootThis.CFrame + (ShootThis.Velocity * getgenv().Prediction + Vector3.new(0,-.5,0))
  128. return ((Index == "Hit" and Predicted_Position))
  129. end
  130. end
  131. end
  132. end
  133. return oldIndex(self, Index)
  134. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement