Advertisement
MT1ZP

Anti-Lock Script

Aug 15th, 2022
11,050
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. Anti-Lock Script
  2.  
  3.  
  4.  
  5.  
  6.  
  7. local Toggled = false
  8. local KeyCode = 'v'
  9.  
  10.  
  11. function AA()
  12. local oldVelocity = game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity
  13. game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(oldVelocity.X, -70, oldVelocity.Z)
  14. game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(oldVelocity.X, oldVelocity.Y, oldVelocity.Z)
  15. game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(oldVelocity.X, -70, oldVelocity.Z)
  16. game.Players.LocalPlayer.Character.Humanoid.HipHeight = 4.14
  17. end
  18.  
  19. game:GetService('UserInputService').InputBegan:Connect(function(Key)
  20. if Key.KeyCode == Enum.KeyCode[KeyCode:upper()] and not game:GetService('UserInputService'):GetFocusedTextBox() then
  21. if Toggled then
  22. Toggled = false
  23. game.Players.LocalPlayer.Character.Humanoid.HipHeight = 1.85
  24.  
  25. elseif not Toggled then
  26. Toggled = true
  27.  
  28. while Toggled do
  29. AA()
  30. task.wait()
  31. end
  32. end
  33. end
  34. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement