Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.LocalPlayer
- enabled = true
- local humanoid = player.Character.Humanoid
- local mouse = player:GetMouse()
- local anim = Instance.new("Animation")
- anim.AnimationId = "http://www.roblox.com/asset/?id=235542946"
- local playAnim = humanoid:LoadAnimation(anim)
- local anim2 = Instance.new("Animation")
- anim2.AnimationId = "http://www.roblox.com/asset/?id=393169468"
- local playAnim2 = humanoid:LoadAnimation(anim2)
- key = " :z or c"
- 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"
- print("Welcome ".. player.Name.. key.. nextmes)
- wait(1)
- Sound2 = Instance.new("Sound")
- Sound2.Name = "wolfhowl"
- Sound2.Parent = player.Character
- Sound2.SoundId = "rbxassetid://304050939"
- Sound2.Volume = 10
- Sound2.Pitch =1
- Sound2.Looped = false
- Sound2.EmitterSize = 200
- Sound2.MaxDistance = 200
- mouse.KeyDown:connect(function(key)
- if key == "z" then
- player.Character.Humanoid.WalkSpeed = 0
- Sound2:Play()
- playAnim:Play()
- elseif key == "c" then--Yes i need these in typing
- playAnim2:Play()
- elseif key == "w" then
- playAnim2:Play()
- elseif key == "a" then
- playAnim2:Play()
- elseif key == "s" then
- playAnim2:Play()
- elseif key == "d" then
- playAnim2:Play()
- elseif key == "p" then
- playAnim2:Play()
- elseif key == "i" then
- playAnim2:Play()
- elseif key == "n" then
- playAnim2:Play()
- elseif key == "/" then
- playAnim2:Play()
- else
- player.Character.Humanoid.WalkSpeed = 16
- Sound2:Stop()
- playAnim2:Stop()
- playAnim:Stop()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement