of     1   

SuperLol211
#188717610Saturday, May 07, 2016 11:34 AM GMT

So I posted about an hour ago asking why my animations werent working, I fixed that but I have another issue now. game.Players.PlayerAdded:connect(function(player) while not player.Character do wait() end local character = player.Character local animateScript = character.Animate animateScript.walk.WalkAnim.AnimationId = 'http://www.roblox.com/asset/?id=410422188' end) That's the script I'm using. When I play the game, this and my other custom animations (jumping and falling) work like a charm. However, when I die, upon respawn, the animations are overwritten with the ROBLOX defaults. Why?
SuperLol211
#188717708Saturday, May 07, 2016 11:36 AM GMT

By the way, if you want to see this glitch in-game, go on my profile and go to my only game, called BloxRunners.
Deranged_User
#188717783Saturday, May 07, 2016 11:38 AM GMT

because, you dont have an event to continue the animation when the player dies. the current code only works if the player is alive. So you have two options, avoid death by simply creating your own health property and not affecting the humanoid property.(tons of work) or just adding the same code for onDeath function. for humanoid.
SuperLol211
#188722215Saturday, May 07, 2016 1:31 PM GMT

Alright, ill try this now. Thanks!
SuperLol211
#188722424Saturday, May 07, 2016 1:35 PM GMT

How do I use the onDeath function in the script? I'm not all that good at scripting (can only make VERY basic things).
SuperLol211
#188732380Saturday, May 07, 2016 4:20 PM GMT

««¤Bump¤»»
SuperLol211
#188736621Saturday, May 07, 2016 5:21 PM GMT

flumpbump Anybody wanna help? Please?
SuperLol211
#188737840Saturday, May 07, 2016 5:38 PM GMT

Everybody else getting loads of help and im just sat here. Thanks for being a great community. :c
AggressiveCatch
#188738063Saturday, May 07, 2016 5:41 PM GMT

SuperLol211
#188738636Saturday, May 07, 2016 5:50 PM GMT

How am I supposed to use it? Would it be like game.Players.PlayerAdded:connect(function(player) player.CharacterRemoving:connect(function(character) while not player.Character do wait() end local character = player.Character local animateScript = character.Animate animateScript.walk.WalkAnim.AnimationId = 'http://www.roblox.com/asset/?id=410422188' end)
SuperLol211
#188780242Sunday, May 08, 2016 8:28 AM GMT

Argh, need help! Dont just make it short either, actually give a script example please! :(
Deranged_User
#188780430Sunday, May 08, 2016 8:36 AM GMT

actually, you use character Added, just put that animation stuff in the characterAdded event so, it would go something like this game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) char.Humanoid.Running:connect(function(charSpeed) if(charSpeed> 0.01) then -- do running animation else -- do standing animation end end) end) end)
SuperLol211
#188782922Sunday, May 08, 2016 10:48 AM GMT

Thanks so much! How would it work for the jumping animation I have though? JumpingAnim Script in serverscriptstorage: game.Players.PlayerAdded:connect(function(player) while not player.Character do wait() end local character = player.Character local animateScript = character.Animate animateScript.jump.JumpAnim.AnimationId = 'http://www.roblox.com/asset/?id=410430422' end) Its exactly the same as the walking animation except, you know, for jumping.
SuperLol211
#188783314Sunday, May 08, 2016 11:05 AM GMT

Nevermind, I managed to fix the jump animation with a seperate script. Thanks for your help <3

    of     1