Advertisement
Guest User

Hood customs silent aim

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