Silent Aim (hood duels)


SUBMITTED BY: Saqxzzz

DATE: Nov. 18, 2022, 11:40 a.m.

FORMAT: Text only

SIZE: 4.2 kB

HITS: 536

  1. local Toggle_Key = "q"
  2. local Rejoin_Key = "="
  3. local Prediction = .175 -- DO NOT ask for me for HELP for this shit I HATE when people do that. Figure it out on your own you have brain cells.
  4. local Y_Axis_Aim_Height = -1
  5. local Smoothness = 4 -- Don't go lower.
  6. local FOV_Radius = 250
  7. local FOV_Visible = false
  8. --[[
  9. DO NOT edit anything below this point.
  10. --]]
  11. Drawing = Drawing
  12. mousemoverel = mousemoverel
  13. local Settings = {
  14. Head = "Head";
  15. Humanoid = "Humanoid";
  16. NeckOffSet = Vector3.new(0,tonumber(Y_Axis_Aim_Height),0);
  17. };
  18. local Locking = false
  19. local Players = game:GetService("Players")
  20. local LocalPlayer = Players.LocalPlayer
  21. local Mouse = LocalPlayer:GetMouse()
  22. local UserInputService = game:GetService("UserInputService")
  23. local RunService = game:GetService("RunService")
  24. local Camera = game:GetService("Workspace").CurrentCamera
  25. local FOV_CIRCLE = Drawing.new("Circle")
  26. FOV_CIRCLE.Filled = false
  27. FOV_CIRCLE.Color = Color3.fromRGB(170, 255, 255)
  28. FOV_CIRCLE.Radius = FOV_Radius
  29. FOV_CIRCLE.Thickness = 1
  30. FOV_CIRCLE.Visible = FOV_Visible
  31. FOV_CIRCLE.Transparency = .35
  32. FOV_CIRCLE.Position = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)
  33. local Move_Circle = nil
  34. Move_Circle = RunService.RenderStepped:Connect(function()
  35. FOV_CIRCLE.Position = Vector2.new(UserInputService:GetMouseLocation().X, UserInputService:GetMouseLocation().Y)
  36. end)
  37. function InRadius()
  38. local Target = nil
  39. local Distance = 9e9
  40. local Camera = game:GetService("Workspace").CurrentCamera
  41. for _, v in pairs(Players:GetPlayers()) do
  42. if v ~= LocalPlayer and v.Character and v.Character[Settings.Head] and v.Character[Settings.Humanoid] and v.Character[Settings.Humanoid].Health > 0 then
  43. local Enemy = v.Character
  44. local CastingFrom = CFrame.new(Camera.CFrame.Position, Enemy[Settings.Head].CFrame.Position) * CFrame.new(0, 0, -4)
  45. local RayCast = Ray.new(CastingFrom.Position, CastingFrom.LookVector * 9000)
  46. local World, ToSpace = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(RayCast, {LocalPlayer.Character[Settings.Head]});
  47. local RootWorld = (Enemy[Settings.Head].CFrame.Position - ToSpace).magnitude
  48. if RootWorld < 4 then
  49. local RootPartPosition, Visible = Camera:WorldToViewportPoint(Enemy[Settings.Head].Position)
  50. if Visible then
  51. local Real_Magnitude = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(RootPartPosition.X, RootPartPosition.Y)).Magnitude
  52. if Real_Magnitude < Distance and Real_Magnitude < FOV_CIRCLE.Radius then
  53. Distance = Real_Magnitude
  54. Target = Enemy
  55. end
  56. end
  57. end
  58. end
  59. end
  60. return Target
  61. end
  62. local Render_Lock = nil
  63. function Aimbot()
  64. pcall(function()
  65. if Locking then
  66. local Enemy = InRadius()
  67. local Camera = game:GetService("Workspace").CurrentCamera
  68. local Predicted_Position = nil
  69. local GetPositionsFromVector3 = nil
  70. if Enemy ~= nil and Enemy[Settings.Humanoid] and Enemy[Settings.Humanoid].Health > 0 then
  71. Render_Lock = RunService.Stepped:Connect(function()
  72. pcall(function()
  73. if Locking and Enemy ~= nil and Enemy[Settings.Humanoid] and Enemy[Settings.Humanoid].Health > 0 then
  74. Predicted_Position = Enemy[Settings.Head].Position + (Enemy[Settings.Head].AssemblyLinearVelocity * Prediction + Settings.NeckOffSet)
  75. GetPositionsFromVector3 = Camera:WorldToScreenPoint(Predicted_Position)
  76. mousemoverel((GetPositionsFromVector3.X - Mouse.X) / Smoothness, (GetPositionsFromVector3.Y - Mouse.Y) / Smoothness)
  77. elseif Locking == false then
  78. Enemy = nil
  79. elseif Enemy == nil then
  80. Locking = false
  81. end
  82. end)
  83. end)
  84. end
  85. end
  86. end)
  87. end
  88. Mouse.KeyDown:Connect(function(KeyPressed)
  89. if KeyPressed == string.lower(Toggle_Key) then
  90. pcall(function()
  91. if Locking == false then
  92. Locking = true
  93. Aimbot()
  94. elseif Locking == true then
  95. Locking = false
  96. Render_Lock:Disconnect()
  97. end
  98. end)
  99. end
  100. end)
  101. Mouse.KeyDown:Connect(function(Rejoin)
  102. if Rejoin == string.lower(Rejoin_Key) then
  103. game:GetService("TeleportService"):Teleport(game.PlaceId, LocalPlayer) task.wait()
  104. end
  105. end);

comments powered by Disqus