RemoveCharacter (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator example |
>Camoy No edit summary |
||
Line 1: | Line 1: | ||
{{Locked}} | {{Locked}} | ||
<onlyinclude>{{Method|name = RemoveCharacter | <onlyinclude>{{Method | ||
|name = RemoveCharacter | |||
|description = Sets the parent of the Player's character to nil. | |description = Sets the parent of the Player's character to nil. | ||
|object = Player | |object = Player | ||
}}</onlyinclude> | }}</onlyinclude> | ||
{{clear floats}} | |||
{{Example|If using the [[Command Bar]] or a [[CoreScript]] then...<pre> | {{Example|If using the [[Command Bar]] or a [[CoreScript]] then...<pre> | ||
game.Players.LocalPlayer:RemoveCharacter() -- removes the LocalPlayer's Character</pre>If using a [[Script]] or a [[LocalScript]]...<pre>game.Players.LocalPlayer:RemoveCharacter() --> s RemoveCharacter</pre>}} | game.Players.LocalPlayer:RemoveCharacter() -- removes the LocalPlayer's Character</pre>If using a [[Script]] or a [[LocalScript]]...<pre>game.Players.LocalPlayer:RemoveCharacter() --> s RemoveCharacter</pre>}} | ||
[[Category:Methods]] | [[Category:Methods]] |
Revision as of 14:03, 31 December 2010
Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
![]() | |
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 CharacterIf using a Script or a LocalScript...
game.Players.LocalPlayer:RemoveCharacter() --> s RemoveCharacter