Advertisement
Imperious123

Untitled

Dec 8th, 2019
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. plr = game:service'Players'.LocalPlayer
  2. char = plr.Character
  3. hum = char:FindFirstChildOfClass'Humanoid'
  4. mouse = plr:GetMouse()
  5. on = false
  6.  
  7. mouse.KeyDown:connect(function(key)
  8. if key == "n" then
  9. if not on then
  10. on = true
  11. elseif on then
  12. on = false
  13. end
  14. end
  15. end)
  16.  
  17. while wait() do
  18. if char then
  19. hum = char:FindFirstChildOfClass'Humanoid'
  20. end
  21. if on then
  22. hum:ChangeState(11)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement