How do I get an animation on the server that I started on the Client?

So, I started an animation on the Client:
LocalScript:

local HoldTrack = player.Character:FindFirstChild("Humanoid"):LoadAnimation(PickDown)	
HoldTrack:Play()

And I’m trying to get it and check if it is playing on the server:
Script:

HoldTrack = player.Character:FindFirstChild("Humanoid"):LoadAnimation(PickDown)
print(HoldTrack.IsPlaying) --> False

I’m trying to do this, but I can’t, The server returns false for “HoldTrack.IsPlaying”, does anyone know how I would do this?

1 Like

Try firing the server on the client whenever you want the animation to be played. Here’s a useful post on the developer hub about Remote Functions and Events

The problem would be that the delay caused would be noticeable, since the animation is in a Tool and it is played when the player activates this Tool.

You can tell the server that the client is playing the animation, rather than asking the server if it can play the animation. Just play the animation and fire to the server when it starts (firing an event when it ends as well).

2 Likes