Advertisement
Animescapetower

Untitled

Mar 4th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. player = game.Players.LocalPlayer
  2. enabled = true
  3. local humanoid = player.Character.Humanoid
  4. local mouse = player:GetMouse()
  5.  
  6. local anim = Instance.new("Animation")
  7. anim.AnimationId = "http://www.roblox.com/asset/?id=235542946"
  8. local playAnim = humanoid:LoadAnimation(anim)
  9.  
  10. local anim2 = Instance.new("Animation")
  11. anim2.AnimationId = "http://www.roblox.com/asset/?id=393169468"
  12. local playAnim2 = humanoid:LoadAnimation(anim2)
  13. key = " :z or c"
  14. nextmes = " This works for z or c, c does nothing, press other keys then z or c stops the animation, WASD Keys don't stop the anim, also if you press c it would do the same"
  15. print("Welcome ".. player.Name.. key.. nextmes)
  16. wait(1)
  17. Sound2 = Instance.new("Sound")
  18. Sound2.Name = "wolfhowl"
  19. Sound2.Parent = player.Character
  20. Sound2.SoundId = "rbxassetid://304050939"
  21. Sound2.Volume = 10
  22. Sound2.Pitch =1
  23. Sound2.Looped = false
  24. Sound2.EmitterSize = 200
  25. Sound2.MaxDistance = 200
  26.  
  27.  
  28. mouse.KeyDown:connect(function(key)
  29. if key == "z" then
  30. player.Character.Humanoid.WalkSpeed = 0
  31. Sound2:Play()
  32. playAnim:Play()
  33. elseif key == "c" then--Yes i need these in typing
  34.  
  35. playAnim2:Play()
  36. elseif key == "w" then
  37.  
  38. playAnim2:Play()
  39. elseif key == "a" then
  40.  
  41. playAnim2:Play()
  42. elseif key == "s" then
  43.  
  44. playAnim2:Play()
  45. elseif key == "d" then
  46.  
  47. playAnim2:Play()
  48. elseif key == "p" then
  49.  
  50. playAnim2:Play()
  51. elseif key == "i" then
  52.  
  53. playAnim2:Play()
  54. elseif key == "n" then
  55.  
  56. playAnim2:Play()
  57.  
  58. elseif key == "/" then
  59.  
  60. playAnim2:Play()
  61. else
  62. player.Character.Humanoid.WalkSpeed = 16
  63. Sound2:Stop()
  64. playAnim2:Stop()
  65. playAnim:Stop()
  66. end
  67. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement