Advertisement
1992x

test

Nov 19th, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. local plr = game:GetService("Players").LocalPlayer
  2. local char = plr.Character
  3. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  4. local hum = char:FindFirstChild("HumanoidRootPart")
  5. local KEY= "q"
  6. local SPEED = "3"
  7.  
  8. mouse.KeyDown:connect(function(key)
  9. if key == KEY then
  10. loop = true
  11. while loop do
  12. hum.CFrame = hum.CFrame + hum.CFrame.lookVector * SPEED
  13. wait()
  14. end
  15. end
  16. end)
  17.  
  18.  
  19. mouse.KeyUp:connect(function(key)
  20. if key == KEY then
  21. loop = false
  22. end
  23. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement