Animations being delayed for other players

I want to play the user’s animations on their client (also making everyone else see their animation.)

but although it plays without delay on the user’s client, its slightly delayed for everyone else. how do i fix this?

You simply can’t. There is always a delay between Server and Client, especially between Client to Server to Client. One way to reduce the delay would be to play the Animation on the server-side but you can’t get rid of the delay completely when it comes to replication

As has been said above, the most efficient way to eliminate delay is to perform the animation calculation on the server and have it replicate to all clients. This is significantly faster than having the client replicate to the server, but still dependent on individual players’ lag.

Alternatively, you could try to get all clients to animate said player on their own copy of the world, but this can run into some hard-to-debug situations, and may still be offset if clients receive the event later than others.

Is there any specific reason for needing the animations synced? If it’s to match other parts in the world, server-side animations is likely your solution.

2 Likes

Reason is im making a combat system. Your gonna need fast reaction time and if the animation is delayed its gonna be annoying and janky

So should i just replicate the animation to all clients instead?

Like mentioned above, if you want a short delay you will have to play the Animation directly on the server

1 Like

okay, ill try that out. thank you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.