I made a animation, but i don’t know how to Make the player’s character to do the animation, so please, All Answers Help.
If you want to replace the default walking animation with a new one, you can:
-
Hit play, locate your character inside workspace and copy the animate script
-
Stop, paste it inside starterPlayer>StarterCharacterScripts
-
Add your animation’s ID into walk>WalkAnimation or run>RunAnimation, depending if your character is r6 or r15.
Hold on, sorry, I didn’t make stuff clear, I’m wanting to do it via script, do i do it like
local animation = workspace:waitforchild("animation")
animation.play()
please correct me if i’m wrong, @jXD20072
If you do it via script then the animation won’t update until something else happens, like if your player jumps. It’s ideal already for the first method, and scripting an implementation is much harder
Oh, then you can just do:
local animation = Humanoid.Animator:LoadAnimation(yourAnimationInstance)
animation:Play() -- If you want it to start
animation:Stop() -- For stopping it
Sorry for the late reply, just make sure the humanoid has an animator object inside it and that you pass the animation itself as the parameter, not the id.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.