---
title: "init(players:)"
framework: gamekit
role: symbol
role_heading: Initializer
path: "gamekit/gkleaderboard/init(players:)"
---

# init(players:)

Initializes a leaderboard request to retrieve the scores of a specific group of players.

## Declaration

```swift
init(players: [GKPlayer])
```

## Parameters

- `players`: An array of doc://com.apple.gamekit/documentation/GameKit/GKPlayer objects that holds the player identifiers to retrieve.

## Return Value

Return Value An initialized leaderboard request.

## Discussion

Discussion A leaderboard object that you initialize with this method ignores the playerScope and range properties. Instead, it retrieves scores for the specific list of players whose GKPlayer objects are in the players parameter.

## See Also

### Deprecated initializers

- [init(playerIDs:)](gamekit/gkleaderboard/init(playerids:).md)
