Advertisement
epicdude6951

Untitled

Nov 24th, 2016
619
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local chr = plr.Character
  3. local mouse = plr:GetMouse()
  4.  
  5. _G.hotkey = 'q'
  6.  
  7. mouse.KeyDown:connect(function(key)
  8. if key == _G.hotkey then
  9. local chr = game.Players.LocalPlayer.Character
  10. stopAnimations()
  11. chr.Animate.Disabled = true
  12. chr.Torso["Left Shoulder"].C1 = CFrame.new(0, 0.699999988, 0, 0.939692616, 0, -0.342020124, -0.330366075, -0.258819044, -0.907673359, -0.0885213241, 0.965925813, -0.243210346)
  13. chr.Torso["Right Shoulder"].C1 = CFrame.new(-0.600000024, 0.5, -0.200000003, 0.664462984, 0.241844743, 0.707106769, -0.664462984, -0.241844788, 0.707106769, 0.342020154, -0.939692616, -3.09086197e-008)
  14. chr.Torso["Neck"].C1 = CFrame.new(0, -0.600000024, 0, -0.866025388, 0.5, 0, -0.171010137, -0.29619807, 0.939692616, 0.469846278, 0.813797653, 0.342020124)
  15. end
  16. end)
  17.  
  18. mouse.KeyUp:connect(function(key)
  19. if key == _G.hotkey then
  20. local chr = game.Players.LocalPlayer.Character
  21. chr.Animate.Disabled = false
  22. chr.Torso["Left Shoulder"].C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  23. chr.Torso["Right Shoulder"].C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  24. chr.Torso["Neck"].C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  25. end
  26. end)
  27.  
  28. function stopAnimations()
  29. for _,v in pairs(game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()) do
  30. v:Stop()
  31. end
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement