RemoveCharacter (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>SoulStealer9875
Using in a script/localscript causes an error.
>SoulStealer9875
Using in a script/localscript causes an error.
 
(No difference)

Latest revision as of 13:18, 9 April 2012

Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
RemoveCharacter( )
Returns nil
Description: Sets the parent of the Player's character to nil.
Member of: Player


Example
If using the Command Bar or a CoreScript then...
game.Players.LocalPlayer:RemoveCharacter() -- removes the LocalPlayer's Character