How to control another character

I am trying to make a script that lets one player control another, and it mostly works, but sometimes the movement stops. My current script works like this:

1. Disable controls for target player (works)
2. Disable movement for current player (works)

Then every Heartbeat:

3. Calls :MoveTo() on the target player's humanoid, trying to move it to it's current position + the current player's humanoid's MoveDirection (only works sometimes)

This works sometimes, but then other times it just stops and the character doesn’t move anymore. This is a huge problem especially when testing with multiple players, movement hardly works.

I’ve also tried setting the player’s character, but that deletes the old one and just breaks things.

1 Like

you can make a clone of the player character and give it another name before changing the player character

do you give the player controlling the other player NetworkOwnership over the character? it’ll only work if you have NetworkOwnership of the player to Replicate the movement

Thank you so much, this is exactly what I needed - not sure why I didn’t think of that. This is what got it working!

1 Like

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