← Back to Racing Scripts

Leaderboard Script

Customize your variables, then fill in the blanks!

Your Custom Settings

What to track on leaderboard

Server Script (ServerScriptService)

This script creates a leaderboard showing each player's lap count. The leaderboard appears automatically in the top-right corner of the screen.

game.Players.:Connect(function(player)
    player.CharacterAppearanceLoaded:Connect(function(character)
        local leaderstats = .new("Folder", player)
        leaderstats. = ""
        local plrLaps = Instance.new("", leaderstats)
        plrLaps.Name = "Laps"
        plrLaps. = 0
    end)
end)