> For the complete documentation index, see [llms.txt](https://rocket-networking.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rocket-networking.gitbook.io/docs/server-side-scripting/important-scripts/game_server_created-script-format.md).

# "game\_server\_created" Script format

You can use this script as sort of a "Create Event" for your server. You can store initial variables, create methods etc etc.

#### Example Implementation

```javascript
//game_server_created
game.leaderboard = []

game.updateLeaderboard = () => {
    //scout all clients in room "public"
    for(let clientId in game.rooms["public"].clients){
        var client = game.rooms["public"].clients[clientId]
        //add this clients name and kills to the list
        game.leaderboard.push([ client.name , client.kills  ])
    }
    
    //now sort game.leaderboard somehow
}
```
