PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

RemoveCharacter

The RemoveCharacter Player function removes the player’s character. It also clears the player’s Backpack and PlayerGui. This is useful when you would like to temporarily remove a player’s character.

To reload a players character after using this function, simply use the Player/LoadCharacter function.

Note

  • This function does not remove a player from the game. It only removes their character. To remove a player from the game, you can use the Player/Kick function.

Returns

Return Type Summary

No return.


Code Samples


How to Remove a Player's Character

​This example demonstrates how to remove a player’s character from the game using Player/RemoveCharacter.

After five seconds the example reload’s the player’s character using Player/LoadCharacter to demonstrate that the player’s PlayerGui and Backpack are cleared when the character is removed.