Hello, In my game I have a script that replaces all the default animations and plays my custom ones.
game.Players.PlayerAdded:connect(function(player)
while not player.Character do wait() end
local character = player.Character
local animateScript = character.Animate
animateScript.idle.Animation2.AnimationId = 'http://www.roblox.com/asset/?id=633000480'
animateScript.idle.Animation1.AnimationId = 'http://www.roblox.com/asset/?id=633000480'
animateScript.fall.FallAnim.AnimationId = 'http://www.roblox.com/asset/?id=632774213'
animateScript.jump.JumpAnim.AnimationId = 'http://www.roblox.com/asset/?id=632751324'
animateScript.walk.WalkAnim.AnimationId = 'http://www.roblox.com/asset/?id=631862913'
end)
How do I make it so that when a press a certain key that all of these animations will stop and play another animation?
So if i press "z" all of these animations will stop playing and another animation will play (and also set the player's speed to zero) Then after the animation is dont playing once reactivate all of the other animations and deactivate this one?
Thanks -UnbeatableChicken

1 comment
you wanna accept mah answer