Switching User Controls

Basically, I’m developing a game which (as it’s main feature) should allow the player to “switch” between several in-game characters (R6 Rigs). By switching, I mean it would stop controlling their own character and it would instead apply the player’s movement system to an R6 Rig, so instead of pressing W to make your player go forward, the switched to character does instead, and if you were to press space/jump the character you switched to would jump instead.

However my issue is with implementing it. I don’t know where to start after implementing user input detection. How do you change which character is controlled when you use the joystick/ enter WASD? I’m not looking for a pre-made solution but maybe links and explanations around how to achieve this.

Also yes, this is quite a complex question, so I do appreciate you taking the time to read this.

If this isn’t clear enough, think about FIFA, and how you can switch between players and control them separately at the click of a button.

Thanks again!

Are you setting the character property in their player object?
Also make sure your rigs have a humanoid and if the camera doesn’t automatically update, make sure the camera in workspace uses the new humanoid to make the camera follow it.
If all of that doesn’t work, also use code to set network ownership to the player controlling the character to make sure that isn’t automatically happening.
Instead of switching characters, you could also use :LoadCharacterWithHumanoidDescription to change their appearance.

1 Like

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