Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Animation Stopped() Event Broken?

Asked by 6 years ago
Edited 6 years ago

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

0
if the AnimationEnd is an AnimationTrack, then this should work. try printing something. Right now you're not changing anything though iamnoamesa 674 — 6y
0
Yes the AnimationEnd is the AnimationTrack, roblox is weird... cornman601 59 — 6y

1 answer

Log in to vote
0
Answered by
Bellyrium 310 Moderation Voter
6 years ago
Edited 6 years ago

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)

Ad

Answer this question