Cra-Z-Gaming

Aimbot W/ FOV circle

Oct 4th, 2024
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. getgenv().Silent = {
  2. Setting = {
  3. IsTargetting = true,
  4. Prediction = 0.157,
  5. TargetPart = "HumanoidRootPart",
  6. WallCheck = true,
  7. FOV = {
  8. Radius = 50,
  9. Visible = true
  10. }
  11. }
  12. }
  13.  
  14. local Inset, Mouse, Client, Vector2New, Cam =
  15. game:GetService("GuiService"):GetGuiInset().Y,
  16. game.Players.LocalPlayer:GetMouse(),
  17. game.Players.LocalPlayer,
  18. Vector2.new,
  19. workspace.CurrentCamera
  20. local Targetting
  21.  
  22. local FOV = Drawing.new("Circle")
  23. FOV.Transparency = 0.5
  24. FOV.Thickness = 1.6
  25. FOV.Color = Color3.fromRGB(230, 230, 250)
  26. FOV.Filled = false
  27.  
  28. local UpdateFOV = function(Radius)
  29. if (not FOV) then
  30. return
  31. end
  32.  
  33. FOV.Position = Vector2New(Mouse.X, Mouse.Y + (Inset))
  34. FOV.Visible = getgenv().Silent.Setting.FOV["Visible"]
  35. FOV.Radius = (Radius) * 3.067
  36.  
  37. return FOV
  38. end
  39.  
  40. task.spawn(function() while task.wait() do UpdateFOV(getgenv().Silent.Setting.FOV["Radius"]) end end)
  41.  
  42. local WallCheck = function(destination, ignore)
  43. if getgenv().Silent.Setting.WallCheck then
  44. local Origin = Cam.CFrame.p
  45. local CheckRay = Ray.new(Origin, destination - Origin)
  46. local Hit = game.workspace:FindPartOnRayWithIgnoreList(CheckRay, ignore)
  47. return Hit == nil
  48. else
  49. return true
  50. end
  51. end
  52.  
  53. local getClosestChar = function()
  54. local Target, Closest = nil, 1 / 0
  55. for _, v in pairs(game.Players:GetPlayers()) do
  56. if (v.Character and v ~= Client and v.Character:FindFirstChild("HumanoidRootPart")) then
  57. local Position, OnScreen = Cam:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
  58. local Distance = (Vector2New(Position.X, Position.Y) - Vector2New(Mouse.X, Mouse.Y)).Magnitude
  59.  
  60. if
  61. (FOV.Radius > Distance and Distance < Closest and OnScreen and
  62. WallCheck(v.Character.HumanoidRootPart.Position, {Client, v.Character}))
  63. then
  64. Closest = Distance
  65. Target = v
  66. end
  67. end
  68. end
  69. return Target
  70. end
  71.  
  72. local Old
  73. Old =
  74. hookmetamethod(
  75. game,
  76. "__index",
  77. function(self, key)
  78. if self:IsA("Mouse") and key == "Hit" then
  79. Targetting = getClosestChar()
  80. if Targetting ~= nil then
  81. return Targetting.Character[getgenv().Silent.Setting.TargetPart].CFrame +
  82. (Targetting.Character[getgenv().Silent.Setting.TargetPart].Velocity *
  83. getgenv().Silent.Setting.Prediction)
  84. end
  85. end
  86. return Old(self, key)
  87. end
  88. )
Tags: Aimbot aim SILENT
Add Comment
Please, Sign In to add comment