#How to stop a looping animation

45 messages · Page 1 of 1 (latest)

nocturne gorge
#

where did you get this code from? humanoid:loadanimation is deprecated

neat scroll
#

What does deprecated mean

nocturne gorge
#

obsolete / outdated / replaced by newer method

#

but it still exists for backwards compatability to eventually be removed entirely at some point - any games still relying on deprecated methods will break.

neat scroll
#

Well that script works nicely

slate onyxBOT
#

studio** You are now Level 4! **studio

nocturne gorge
#

anyway you should only ever loadanimation once for the animationtrack then just play/stop that

neat scroll
#

Elaborate

nocturne gorge
#

load it once?

neat scroll
#

Wym

nocturne gorge
#

instead of every time you click the tool?

neat scroll
#

Oh

#

I changed it to Tool.Equipped

nocturne gorge
#

it's the animationtrack that you usually care about, not the loading of it.

neat scroll
#

Since its an idle animation

#

How do I make it stop it when the character walks

nocturne gorge
#

have a look at Animate.lua under your character

#

also you could just connected to movedirection changed signal

#

when its not 0 the character is moving

neat scroll
#

I know not what that means

nocturne gorge
#

humanoid.movedirection

#

have a look at it while the game is running

neat scroll
#

I see I see

#

Where do I put that

#

And what do I replace load animation with

nocturne gorge
#

the docs tells you

neat scroll
#

What are docs

nocturne gorge
#

documentation

neat scroll
#

Huh

#

This is confusing

#

Can you just tell me the code I need

#

And where to put it

nocturne gorge
#

i'd have to charge you for that and i dont think its worth it for this problem

neat scroll
#

what was the point of this entire conversation

#

Ill just ask someone else, you're overcomplicating things

nocturne gorge
#

okay

lean bronze
#

the problem is not loading cause its fine it might be deprecated but it works the thing is that animation overwrites everything if you dont stop it

#

so just check if the player is walking then you could do

AnimationTrack:Stop()
neat scroll
#

I alr fixed it

#

How do I close this

lean bronze