Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local mouse = player:GetMouse()
  3. local Animate
  4. local Humanoid = player.Character:FindFirstChild('Humanoid')
  5.  
  6. mouse.KeyDown:Connect(function(Key)
  7. if Key == "c" then
  8. local Animation = Instance.new("Animation", player.Character)
  9. Animation.AnimationId = "rbxassetid://03710139367"
  10. Animate = Humanoid:LoadAnimation(Animation)
  11. Animate:Play()
  12. end
  13. end)
  14.  
  15. mouse.KeyUp:Connect(function(Key)
  16. if Key == "c" then
  17. Animate:Stop(c)
  18. end
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement