:MoveTo() and Replication

Hi all I have come across an issue I had while using :MoveTo() on a Dummy.

I would like to use MoveTo on the client and for it to not replicate to other clients.

I fire MoveTo through a local script on the client, however the Dummy’s movement still replicates to other clients. I have tried using SetNetworkOwner() to set the network owner of the Dummy to the server, however this entirely limits the Dummy’s movement on every client.

1 Like

I think the only way to do that is to move the dummy manually and animate it by creating a new local animator.

Just make a custom moveto function

1 Like

Create the dummy instance on the client.

This way, the specific instance of the NPC only exists on the individual client, so it would be impossible to replicate changes for it to other players due to the specific reference only existing on their own client.

You could put all your NPC’s in a “NPC” folder in ReplicatedFirst or ReplicatedStorage and then parent them to Workspace, or whatever container they should be under, then control them from the client.

2 Likes

I hadn’t thought about that but that helps me out so much. Thanks so much!