(Yep, it’s me back again with another dumb question which probably has like the easiest solution)
But anyways, I want to check when the animation full animation in this script ends. Basically it’s a module script which will play a full MoonAnimator animation. But I want to detect when it finishes the animation.
The first animation(camera one), ends when the event gets disconnected(Connection:Disconnect()). Therefore you can make some kind of custom event which fires right after:
Connection:Disconnect()
CameraAnimStopped:Fire() --where CameraAnimStopped is a BindableEvent
The other animations are actual AnimationTracks, therefore you can detect them directly using the .Stopped event:
LoadedAnimation:Play()
LoadedAnimation.Stopped:Connect(function()
print(LoadedAnimation.Name.." stopped!, you can fire another bindable event for this")
end)
Hm, good idea. But since it’s getting called from a LocalScript, should I fire a RemoteEvent to the server, then fire it back to the client? And at the end of the script I could do something like this?