GameKit.Leaderboard.New
-----------------------

Creates new leaderboard.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GameKit](component_GameKit.md) | [8.5](newinversion85.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "GameKit.Leaderboard.New" { ; playerIdentifiers } ) 

**MBS**( **"GameKit.Leaderboard.New";** /\* Creates new leaderboard. \*/  
**$playerIdentifiers**) /\* Optional; The list of player identifiers. \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| playerIdentifiers | The list of player identifiers. |  | Optional |

### Result

Returns leaderboard identifier or error.

### Description

Creates new leaderboard.  
If player list is given, returns an identifier for the leaderboard object initialized with this method ignores the playerScope and range properties. Instead, it retrieves scores for the specific list of players whose player identifiers are included in the players parameter.  
  
If no player list is given, a leaderboard object initialized with this method uses the playerScope, timeScope, and range properties to search Game Center for scores.  
### See also

- [GameKit.Leaderboard.Image](GameKitLeaderboardImage.md)
- [GameKit.Leaderboard.Scores](GameKitLeaderboardScores.md)
- [GameKit.Leaderboard.Title](GameKitLeaderboardTitle.md)

### Release notes

- **Version 9.1**
    - Fixed [GameKit.Leaderboard.New](http://www.mbsplugins.eu/GameKitLeaderboardNew.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin, version 9.1pr1](https://www.mbsplugins.de/archive/2019-02-06/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 5th November 2018 , last changed 8th November 2018

  
[GameKit.Leaderboard.MaxRange](GameKitLeaderboardMaxRange.md) - [GameKit.Leaderboard.Scores](GameKitLeaderboardScores.md)

[HTML Version](GameKitLeaderboardNew.shtml)