- Documentation
- Shared functions
- getLocalPlayer
Function
getLocalPlayer
Returns the player whose computer runs the script. The localPlayer variable gives the same. On the server it returns false.
Syntax
player getLocalPlayer()Returns
The local player.
Example
local me = getLocalPlayer()
outputChatBox("Grasz jako " .. getPlayerName(me))