Humanoid Animation Error with RemoteEvent

Hello, I need help. I have a normal script in Workspace that when an RemoteEvent does OnServerEvent a Humanoid animation is played, the problem is that the animation does not end and repeats without ending, I think it’s because the event is all the time firing but i dont know.

This is the code:

I hope someone can help me :slight_smile:

You always need to provide the player reference as first argument in the server call.
And you might want to use it with it.

Plus, mind showing us your local script where firing the event?

As I am in the workspace from a script I usually do this


First I make the event for all players from a normal script in Workspace (this script its a countdown that when it reaches 0 starts everything then I usually do it already in the workspace.)

And then it receives it in a local script in StarterUI and sends another event to the server in order to receive it again in the workspace and make the animation play.

I know it’s a lot of hassle but I’m really not very good at this. And thanks anyway for answering :slight_smile: