Blox101

priv C

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