Advertisement
Guest User

Anti lock

a guest
Jun 16th, 2024
8,403
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 1
  1. -- Advanced Anti Aim Lock Script for Da Hood with Keybind Toggle
  2. -- DISCLAIMER: Use this script responsibly and do not use it to gain an unfair advantage over other players.
  3.  
  4. local Players = game:GetService("Players")
  5. local LocalPlayer = Players.LocalPlayer
  6. local RunService = game:GetService("RunService")
  7. local UserInputService = game:GetService("UserInputService")
  8.  
  9. local antiAimLockEnabled = false -- Initially disabled
  10. local movePattern = 1
  11.  
  12. -- Function to randomly move the player's character
  13. local function moveRandomly()
  14. local character = LocalPlayer.Character
  15. if character and character:FindFirstChild("HumanoidRootPart") then
  16. local hrp = character.HumanoidRootPart
  17. hrp.CFrame = hrp.CFrame * CFrame.new(math.random(-5, 5), 0, math.random(-5, 5))
  18. end
  19. end
  20.  
  21. -- Function to zigzag the player's character
  22. local function moveZigzag()
  23. local character = LocalPlayer.Character
  24. if character and character:FindFirstChild("HumanoidRootPart") then
  25. local hrp = character.HumanoidRootPart
  26. hrp.CFrame = hrp.CFrame * CFrame.Angles(0, math.rad(math.random(-45, 45)), 0) * CFrame.new(math.random(5, 10), 0, 0)
  27. end
  28. end
  29.  
  30. -- Toggle function
  31. local function toggleAntiAimLock()
  32. antiAimLockEnabled = not antiAimLockEnabled
  33. if antiAimLockEnabled then
  34. print("Anti Aim Lock Enabled")
  35. else
  36. print("Anti Aim Lock Disabled")
  37. end
  38. end
  39.  
  40. -- Keybind detection
  41. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  42. if not gameProcessed then
  43. if input.KeyCode == Enum.KeyCode.C then
  44. toggleAntiAimLock()
  45. elseif input.KeyCode == Enum.KeyCode.V then
  46. movePattern = movePattern % 2 + 1
  47. print("Movement Pattern Changed to " .. (movePattern == 1 and "Random" or "Zigzag"))
  48. end
  49. end
  50. end)
  51.  
  52. -- Anti Aim Lock Loop
  53. RunService.RenderStepped:Connect(function()
  54. if antiAimLockEnabled then
  55. if movePattern == 1 then
  56. moveRandomly()
  57. else
  58. moveZigzag()
  59. end
  60. end
  61. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement