Timed Leaderboard

ServerScriptService (Seconds)

local function onPlayerJoin(player)
    local leaderstats = Instance.new("Folder")
    leaderstats.Name = "leaderstats"
    leaderstats.Parent = player
 

    local time_ = Instance.new("IntValue")
    time_.Name = "Time"
    time_.Value = 0
    time_.Parent = leaderstats
end
 

game.Players.PlayerAdded:Connect(onPlayerJoin)

local function addTime(player)
    while true do
        wait(1)
        player.leaderstats.Time.Value = player.leaderstats.Time.Value + 1
    end
end

game.Players.PlayerAdded:Connect(addTime)

ServerScriptService (Seconds and Minutes)

local function onPlayerJoin(player)
    local leaderstats = Instance.new('Folder')
    leaderstats.Name = 'leaderstats'
    leaderstats.Parent = player
 
    local seconds = Instance.new('IntValue')
    seconds.Name = 'Seconds'
    seconds.Value = 0
    seconds.Parent = leaderstats
 
    local minutes = Instance.new('IntValue')
    minutes.Name = 'Minutes'
    minutes.Value = 0
    minutes.Parent = leaderstats
end

game.Players.PlayerAdded:Connect(onPlayerJoin)
local function addTime(player)
    while true do
        wait(1)
        player.leaderstats.Seconds.Value = player.leaderstats.Seconds.Value + 1
        if player.leaderstats.Seconds.Value == 60 then
            player.leaderstats.Seconds.Value = 0
            player.leaderstats.Minutes.Value = player.leaderstats.Minutes.Value + 1
        end
    end
end

game.Players.PlayerAdded:Connect(addTime)

ServerScriptService (Minutes)

local function onPlayerJoin(player)
    local leaderstats = Instance.new('Folder')
    leaderstats.Name = 'leaderstats'
    leaderstats.Parent = player
 
    local seconds = Instance.new('IntValue')
    seconds.Name = 'Seconds'
    seconds.Value = 0
    seconds.Parent = player
 
    local minutes = Instance.new('IntValue')
    minutes.Name = 'Minutes'
    minutes.Value = 0
    minutes.Parent = leaderstats
end

game.Players.PlayerAdded:Connect(onPlayerJoin)
local function addTime(player)
    while true do
        wait(1)
        player.Seconds.Value = player.Seconds.Value + 1
        if player.Seconds.Value == 60 then
            player.Seconds.Value = 0
            player.leaderstats.Minutes.Value = player.leaderstats.Minutes.Value + 1
        end
    end
end

game.Players.PlayerAdded:Connect(addTime)