Check if animation has finished, from server?

Is there any way to find out if an animation has finished/started playing, from the server?

So I start the animation/fire the animation from the client. Is there any way to check if the animation has stopped/finished from the server - even though you didn’t fire it from the server?

Thanks!

1 Like

Actually im not really good at explaining But you can read this : How to detect if a character animation is playing? - #6 by Venonum

1 Like

Thanks.
But sadly this method only works on the client. And not server (if the animation is made on the client).

Thanks anyways though!

1 Like

Oh yeah sorry. My bad. Try this code (tell me if there something wrong) :


local function AnimPlaying(animation)
	    if animation:IsA("AnimationTrack") then
	        if animation.IsPlaying then
	            print(animation.Name.."is playing.")
	            return true
	        else
	            print(animation.Name.."is not playing.")
	            return false
	        end
	    else
	    error(animation.Name.."must be an AnimationTrack.")
	end
	 
	AnimPlaying(animation) —Your animation

Why are you playing animation from a server?

Client - Runs animation at the player’s time (fast)
Servers - Runs animation at the servers time (slow)