Animator: NPC's

Quick and simple, I have a remote I’m firing to all the clients. And I set the NetworkOwner to the nearest client, which means that it will replicate to all the players. Right?

I don’t get it. Why won’t the animations play on the server, the client is handling the Root-Part so that should be able to replicate to the server.

Animation Player:

Network ownership handler

Network ownership:
image

If you don’t get what I am saying, I will be happy to explain more in-depth about my problem

if you want to play an animation you dont need the server for that, animations will replicate to other clients automatically when called by someone’s local script. Also the network owner isn’t even needed for what you’re trying to do. If you want to make an animation play for everyone using the server just load it into the characters animator and play it normally, as its called by the server all clients will see it

I’m making it to where the client will handle the pathfinding of my character, but my animation’s just won’t work on the server. Even though I have my humanoidRootPart’s ownership set to the nearest player, and plus,

that won’t work, I am already calling it from the server, which does load the animation and then play the track, why isn’t it working? The server is using an attachment to fire from the rifle, but it’s still not working.

I want my game to be handled mostly on the client, like visualizers, and plus this worked before. The attachment is on the server, but the animation is playing on all clients, but isn’t replicating to the server.

Server:
image

Client:
image

A client can handle pathfinding but you would have to call the server to actually do the pathfinding movement if you want the movement to replicate, why not do it on the server?

Because I will have multiple NPC’s, last time I did that, the server’s memory overloaded and mostly just crashes at the amount I want.

The movement is handled on the client, and is moved on the client. Because the network owner ship is the client

Playing them on the client is mainly for player characters.
Playing them on the server is mainly for other things like npcs.

Client animations get replicated but only when played on player characters. Server animations will always replicate to all clients.

If you are playing animations for npcs, then you want to play them on the server.

1 Like

I clearly remember vividly that you we’re able to synchronize the animations on an NPC. Using the server and client. But if that’s the case then I’ll have to settle with that. Only player animations can be played from the remote events.

Thanks, but I’ll have to redo some of my code. Which sucks, but I have to do it for the best. This will definitely strain the server for all the moving parts that it’s rendering. Thanks alot.

1 Like

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