Second parameter for animation replication on Humanoid and AnimationController

Currently there is no way to make animations play exclusively on the client when played on LocalPlayer.Character.

The solution is simple : Add a second, boolean parameter which decides to pass the animation to the Animator object for replication. If true, don’t replicate it. If false/nil, replicate it like the normal behavior does.

Humanoid:LoadAnimation(anim,true) -- Won't replicate
Humanoid:LoadAnimation(anim) -- Will replicate

My use case for this is having a damage animation which handles all players on the client, allowing for instant animation playing (along with other effects), without having the animation play twice as a result of it playing the animation for LocalPlayer as well. I’m sure there are also a plethora of other use-cases developers will find for this.

10 Likes