So how do I put animation inside a script?
COMMUNITY QUESTION
Hello, help with Animation?
1 answer
Before posting on Scripting Helpers make sure you look up this question before posting, also this isn't a request site. This seems to be your first question so I will post some code to make this work with, and some comments explaining how these work. Also, how to make it work with your animation.
This script does a walking animation, since you also didn't explain what type of animation you want.
game.Players.PlayerAdded:connect(function(plr) -- When a player joins, everything inside will trigger
plr.CharacterAdded:connect(function(chr) -- This event is called everytime the character respawns or is loaded
chr.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=INSERTIDHERE" -- This sets the animation id for the WalkAnim, put the id of the published animation here
end)
end)
If this doesn't answer your question, don't hesitate to comment asking for a different type of animation.
Hope this helped!
Sincerely, jmanrock123
This discussion is preserved as it was. New answers, comments, and votes are closed.
