Advertisement
martinrampe13

anti lock

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