NotPeanutSyrup

Aimbot script

May 14th, 2022 (edited)
603
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. local Aiming = loadstring(game:HttpGet("https://raw.githubusercontent.com/Stefanuk12/Aiming/main/Examples/AimLock.lua"))()
  2. local AimingChecks = Aiming.Checks
  3. local AimingSelected = Aiming.Selected
  4. local AimLockSettings = Aiming.AimLock
  5.  
  6. -- // Services
  7. local Workspace = game:GetService("Workspace")
  8.  
  9. -- // Vars
  10. local CurrentCamera = Workspace.CurrentCamera
  11.  
  12. local DaHoodSettings = {
  13. Prediction = 0.165,
  14.  
  15. SilentAim = true,
  16.  
  17. AimLock = AimLockSettings,
  18. BeizerLock = {
  19. Smoothness = 0.05,
  20. CurvePoints = {
  21. Vector2.new(0.83, 0),
  22. Vector2.new(0.17, 1)
  23. }
  24. }
  25. }
  26. getgenv().DaHoodSettings = DaHoodSettings
  27.  
  28. -- //
  29. local function ApplyPredictionFormula(SelectedPart)
  30. return SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction)
  31. end
  32.  
  33. -- // Hook
  34. local __index
  35. __index = hookmetamethod(game, "__index", function(t, k)
  36. -- // Check if it trying to get our mouse's hit or target and see if we can use it
  37. if (t:IsA("Mouse") and (k == "Hit" or k == "Target") and AimingChecks.IsAvailable() and DaHoodSettings.SilentAim) then
  38. -- // Vars
  39. local SelectedPart = AimingSelected.Part
  40. local Hit = ApplyPredictionFormula(SelectedPart)
  41.  
  42. -- // Return modded val
  43. return (k == "Hit" and Hit or SelectedPart)
  44. end
  45.  
  46. -- // Return
  47. return __index(t, k)
  48. end)
  49.  
  50. -- // Aimlock
  51. function AimLockSettings.AimLockPosition(CameraMode)
  52. -- // Vars
  53. local Position
  54. local BeizerData = {}
  55.  
  56. -- // Hit to account prediction
  57. local Hit = ApplyPredictionFormula(AimingSelected.Part)
  58. local HitPosition = Hit.Position
  59.  
  60. -- //
  61. if (CameraMode) then
  62. Position = HitPosition
  63. else
  64. -- // Convert 3d -> 2d
  65. local Vector, _ = CurrentCamera:WorldToViewportPoint(HitPosition)
  66. local Vector2D = Vector2.new(Vector.X, Vector.Y)
  67.  
  68. -- // Vars
  69. local BeizerLock = DaHoodSettings.BeizerLock
  70.  
  71. -- //
  72. Position = Vector2D
  73. BeizerData = {
  74. Smoothness = BeizerLock.Smoothness,
  75. CurvePoints = BeizerLock.CurvePoints
  76. }
  77. end
  78.  
  79. -- // Return
  80. return Position, BeizerData
  81. end
Add Comment
Please, Sign In to add comment