Attempt to index nil with 'Stopped' on AnimationTrack

The value AnimationPlayingRightNow is actually nil as you’re defining it as something that ends with :Play(). This might be fine in some other cases, however in this case :Play() returns nothing and therefore indexing .Stopped on it will throw an error.

You can resolve this issue by simply removing :Play() from the defining line and then adding it on a new line below.

1 Like