Animations loaded on a local script not replicating to the server despite it should?

Despite the fact that this was working and should work because animations loaded on a local script still replicate on the server; it just doesnt replicate properly! Sure, it replicates sometimes but its very inconsistent and is not good for my game!

Client’s View:
image

Server’s View:
image

Code Snippet:

playerIdleAnim = character:WaitForChild("Humanoid"):LoadAnimation(animations.PlayerIdle)
playerFireAnim = character:WaitForChild("Humanoid"):LoadAnimation(animations.PlayerFire)
playerReloadAnim = character:WaitForChild("Humanoid"):LoadAnimation(animations.PlayerReload)
playerIdleAnim:Play()
playerIdleAnim.Priority = Enum.AnimationPriority.Action
playerFireAnim.Priority = Enum.AnimationPriority.Action2
playerReloadAnim.Priority = Enum.AnimationPriority.Action2

You should use Animator instead of the old humanoid LoadAnimation

There is an in-depth description on how replication works.

Same Issue:

Server:
image

Client:
image

Has anyone been able to figure out this issue? I’m experiencing the same thing

Still couldn’t get an answer :/.

Hey sorry for the late reply! I seemed to fix this by first loading and connecting all M6Ds on the server as soon as the player enter the game and firing a remote to server then back to all clients before playing the animation.

This wasn’t my solution; but is very similar to my solution! I was setting the Motor6D’s Part1 on a local script AND server, which meant that the animation would be played while the Motor6D wasnt connected on the server which meant that the animation isnt registered and replicated!

1 Like

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