Make a crawling animation still play when the user stops and then walks again?
Hello,
Recently I have been trying to make an animation script that plays the animation I have made, but every time The user stops and carries on walking again, the animation stops and then has to repress the key to activate it. I have tried many different ways of doing this but none have worked and have just made the script more glitchy.
02 | local player = game.Players.LocalPlayer |
03 | local mouse = player:GetMouse() |
04 | local Humanoid = player.Character:FindFirstChild( 'Humanoid' ) |
06 | mouse.KeyDown:Connect( function (Key) |
08 | local Animation = Instance.new( "Animation" , player.Character) |
10 | Animate = Humanoid:LoadAnimation(Animation) |
15 | mouse.KeyUp:Connect( function (Key) |
I have also tried checking if a key has been pressed, like W, and if so, carry on the animation if crawling = true, along with trying to make the animation pause when the user isn't moving, but not ending the animation.
Would there be any way of being able to do this?