Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Animation Stopped() Event Broken?

I'm using the Animation's Stopped() event to change a Value of a Variable. But, is it broken or I don't know how to use it? Here's my code :

local closeanim = script.AnimationEnd
local debounce = false

closeanim.Stopped:connect(function()
	debounce = true
end)

here's the error i get

18:14:14.716 - Stopped is not a valid member of Animation

The animation was played in a different script, don't know if this caused it

2 comments

0

if the AnimationEnd is an AnimationTrack, then this should work. try printing something. Right now you're not changing anything though

0

Yes the AnimationEnd is the AnimationTrack, roblox is weird...

1 answer

✓ Accepted answer

Stop() -- Stops an animation. KeyframeReached() -- is used to watch the steps in an animation

Local track = human:LoadAnim(yup) KeyframeReached:connect(function(FrameName) If FrameName == "END" then endit() end end)

This discussion is preserved as it was. New answers, comments, and votes are closed.