Hello all, I have run into an issue with animation replication from client to server.
For some reason for other players the animation only replicates for character body parts, and not the tool itself.
How the animation is supposed to look like
How it looks like for other players
When the players get very close, the problem seems to be fixed
Animations are loaded from the client while the tool is connected to the player’s right arm with a Motor6D created on the server when the tool is equipped.
I’ve tried looking on the devforum but didn’t find a satisfiable solution
Creating an Animator object on the server and loading the animations into that instead of the humanoid didn’t work
Loading the animations on the server and playing them on the server didn’t change anything
Firing remote events to all clients seems not only like a very network intensive solution (Considering ~20 players actively fighting eachother) but I also feel like it would make the animation look “laggy” for others
I would be very grateful if somebody knew how to solve this
The reason the part doesn’t move is because I assume it is a part of the animation and since the part isn’t technically the players due to network ownership, it won’t be seen by other clients as expected. This may sound, confusing, but let me just go over a few examples of what network ownership is.
In short, network ownership is when the client is responsible for something, for example the players character. This can be very useful for us, however there are a few setbacks.
1 - When you give network ownership to someone, if they have a bad connection, are laggy, etc, the part will also become laggy.
2 - Giving the player too many parts connected to them can cause them performance issues.
The way you can give the player the network ownership of the sword is by simply doing sword:SetNetworkOwner(player)
cloneGrip = grip:Clone() -- grip is the original Motor6D
cloneGrip.Part0 = RightArm
cloneGrip.Part1 = Handle
cloneGrip.Parent = RightArm
if cloneGrip then
Apparently creating an Animator object on the server and then loading the animations into it works but only partially.
When a new player joins the server the animations replicate correctly from old players to the new player, but the animations do not replicate correctly from the new player to old players.