Advertisement
Isaiah27473

Anti Lock 67su

May 7th, 2024 (edited)
743
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.14 KB | None | 0 0
  1. -- Source made fully by 67su
  2.  
  3. -- I ONLY MADE Y AXIS MODIFIABLE BECAUSE DAHOOD PATCHED THE OTHER AXIS'S
  4.  
  5. getgenv().Settings = {
  6.     Antilock = false, -- If the antilock is enabled once you join
  7.     yAxis = -10000, -- Set to 0 to just break prediction, but it will make desync break
  8.  
  9.     Keybind = Enum.KeyCode.B, -- Antilock keybind
  10.  
  11.     DesyncMode = true, -- If you stand still no one can shoot you and you shoot from the sky
  12.     DesyncAngles = 0.1, -- How fast you desync, keep it on 0.1 if you don't want it to be obvious
  13.  
  14.     VelocityVisual = false -- Sees your velocity
  15. }
  16.  
  17. -- Coding
  18.  
  19. local veldot = Drawing.new("Circle")
  20.  
  21. spawn(function()
  22.     veldot.Filled = true
  23.     veldot.Thickness = 1
  24.     veldot.Transparency = 1
  25.     veldot.Radius = 5
  26.     veldot.Color = Color3.fromRGB(170, 120, 210)
  27. end)
  28.  
  29. -- Velocity Visualizer
  30.  
  31. game:GetService("RunService").Heartbeat:Connect(function()
  32.     local pos, onscreen = workspace.CurrentCamera:WorldToViewportPoint(
  33.         game:GetService("Players").LocalPlayer.Character["HumanoidRootPart"].CFrame.Position +
  34.             (game:GetService("Players").LocalPlayer.Character["HumanoidRootPart"].AssemblyLinearVelocity *
  35.                 0.15))
  36.  
  37.     if Settings.VelocityVisual and onscreen then
  38.         veldot.Visible = false
  39.         veldot.Position = Vector2.new(pos.X, pos.Y)
  40.     else
  41.         veldot.Visible = false
  42.     end
  43. end)
  44.  
  45. -- Anti-Aim Functions
  46.  
  47. game:GetService("RunService").Heartbeat:Connect(function()
  48.     local hrp, hum = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart, game:GetService("Players").LocalPlayer.Character.Humanoid
  49.     local velocity, cframe = hrp.AssemblyLinearVelocity, hrp.CFrame
  50.  
  51.     if Settings.Antilock then
  52.         hrp.AssemblyLinearVelocity = Vector3.new(
  53.             0,
  54.             Settings.yAxis,
  55.             0)
  56.  
  57.         if Settings.DesyncMode then
  58.             hrp.CFrame = cframe *
  59.                 CFrame.Angles(0, math.rad(Settings.DesyncAngles), 0)
  60.         end
  61.  
  62.         game:GetService("RunService").RenderStepped:Wait()
  63.         hrp.AssemblyLinearVelocity = velocity
  64.     end
  65. end)
  66.  
  67. game:GetService("UserInputService").InputBegan:Connect(function(Key)
  68.     if Key.KeyCode == Settings.Keybind and not game:GetService("UserInputService"):GetFocusedTextBox() then
  69.         Settings.Antilock = not Settings.Antilock
  70.     end
  71. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement