Hi, I would like to know how I can make an NPC “mimic” player’s movement, so If i walked, the NPC would walk, if I jumped, it jumped. (Not asking anyone to script me an NPC script) I just would like someone to tell me what I can use to make this, for example, I might use AlignOrientation to make the NPC face where I’m facing.
I’ve done this before, when provided the solution to another thread.
You can take the basic idea used (updating the cframe of the clones parts relative to the characters parts) and apply it to the npc’s https://developer.roblox.com/en-us/api-reference/class/Motor6D joints (assuming they are rigged the same) if you want absolute movement replication.
Using the information I provided, you’ll realize that it everything I’ve done has been in a https://developer.roblox.com/en-us/api-reference/class/LocalScript. The npc, however, should be owned by the server. Just note that the npc movements would be slightly delayed because of the delay for the players character replicating to the server.
However, if you want to sync it to each players render step then you should do it on the client. Each player should have their own local npc. This would be done by tracking the player whose movements are mimicked by the npc on the client. Then you should use the information I gave above accordingly to replicate that characters behavior to the npc.