GetPlayerFromCharacter (Function): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mr Doom Bringer
No edit summary
>Mr Doom Bringer
No edit summary
Line 2: Line 2:
|<onlyinclude>
|<onlyinclude>
{{Function|
{{Function|
name                  = GetPlayersFromCharacter
name                  = GetPlayerFromCharacter
|arguments            = [[Instance]] ''character''
|arguments            = [[Instance]] ''character''
|returns              = [[RBX.lua.Player (Object)|Player]] object which is controlling the character.
|returns              = [[RBX.lua.Player (Object)|Player]] object which is controlling the character.

Revision as of 23:38, 13 July 2010

GetPlayerFromCharacter( 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.