GetPlayerFromCharacter (Function): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mindraker
No edit summary
>Mr Doom Bringer
No edit summary
Line 1: Line 1:
{{CatUp|Functions}}
{|
 
|<onlyinclude>
 
{{Function|
[[Category:Functions]]
name                  = GetPlayersFromCharacter
|arguments            = [[Instance]] ''character''
|returns              = [[RBX.lua.Player (Object)|Player]] object which is controlling the character.
|description          = Gives you the player from that player's character. Useful for traps and where you only know which character it is, not the player.
|object              = [[RBX.lua.Players (Service)|Players]]
|}}</onlyinclude>
|}

Revision as of 23:38, 13 July 2010

GetPlayersFromCharacter( Instance character )
Returns Player object which is controlling the character.
Description: Gives you the player from that player's character. Useful for traps and where you only know which character it is, not the player.