I've tried everything i swear, but everytime i do so, it loads the character, and not the Animation, anyone know how? Here is what happens: https://gyazo.com/6cb3955ee0fc6674fdeaa404b400380f
I also cant jump? Here is the script i use to add the animation:
1 | game.Players.PlayerAdded:connect( function (player) |
2 | player.CharacterAdded:connect( function (character) |
3 | player.Character.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=282403667" -- Insert the ID here-- |
4 | player.Character.Animate.jump.JumpAnim.AnimationId = "http://www.roblox.com/asset/?id=265353604" -- Insert the ID here-- |
5 | player.Character.Animate.fall.FallAnim.AnimationId = "http://www.roblox.com/asset/?id=228806506" -- Insert the ID here-- |
6 | end ) |
7 | end ) |
Well im not an expert but ill try to help.
So you have the animation,but you didn't load it in the character Heres an example.
1 | local Anim = Instance.new( "Animation" ) |
2 | Anim.Id = "http://www.roblox.com/asset/?id=228806506" |
3 |
4 | local animTrack = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim) |
5 | animTrack:play() |
Thats an example on how to play animations via script. I hope this can help you.
I think it's because on line 3 the Walk Animation's name is actually, "RunAnim" it will error and prevent the rest of the script from erroring.
1 | game.Players.PlayerAdded:connect( function (player) |
2 | player.CharacterAdded:connect( function (character) |
3 | player.Character.Animate.walk.Run.AnimationId = "http://www.roblox.com/asset/?id=282403667" -- Insert the ID here-- |
4 | player.Character.Animate.jump.JumpAnim.AnimationId = "http://www.roblox.com/asset/?id=265353604" -- Insert the ID here-- |
5 | player.Character.Animate.fall.FallAnim.AnimationId = "http://www.roblox.com/asset/?id=228806506" -- Insert the ID here-- |
6 | end ) |
7 | end ) |
Hope it helps!