#animation not playing

27 messages · Page 1 of 1 (latest)

unreal pier
#

Is the animation loaded?

#

Using the animator within the humanoid?

maiden drum
maiden drum
unreal pier
#

the animator within a humanoid has a function called loadanimation I think

maiden drum
#

so how cna i change my code

unreal pier
#

Lemmie see if I can do anything

maiden drum
#

alright

unreal pier
#

Is animate a folder?

maiden drum
#

OH wait

#

i got that snipit off redit for lua game.Players.LocalPlayer.Character.Animate.walk.WalkAnim.AnimationId = "rbxassetid://10921240218"

#

so nope

#

should it be in starter player or started character scripts

onyx crown
#

Hey there, it looks like you are using the left shift key code ! It is normal it is not working if you have forgotten to disable MouseLock.

You can disable it by going into the StarterPlayer and look for the property named "EnableMouseLockOption" and uncheck it 👍

maiden drum
#

its not mouse lock

onyx crown
#

you want to set a custom walking animation ?

maiden drum
#

ya

#

when you sprint

#

but its not working in my code

crude mural
#

does the speed change work?

#

and are there any other errors

#

make sure walkIdAnim exists

#

idk about this, you dont need two identical nested if statements

#

and make sure to change the animation back to normal

sweet charm
#

''local animation = script.Animation
local humanoid = script.Parent.Humanoid
local animationTrack = humanoid:LoadAnimation(animation)
animationTrack:Play()
animationTrack:AdjustSpeed()''