ParaPlayerService.GetLocalPlayer

private static ParaPlayer LocalParaPlayer

Descriptions

Returns the local player controlled by the current character.

function GetLocalPlayer()
  local localPlayer = CS.ParaPlayerService.GetLocalPlayer()
  if localPlayer ~= nil then
    print(localPlayer.playerID)
  end
  return localPlayer
end