local function T()local T=math.floor(timer.Value/60)local Y=math.floor(timer.Value%60)if Y>=10 then textLabel.Text=tostring(T)..("\058"..tostring(Y))else textLabel.Text=tostring(T)..("\058\048"..tostring(Y))end local J=RaceManager:GetRaceStatus()if J==RaceManager.Status.Countdown and TopBar.Enabled then if Y==0 then CountdownEndBeep:Play()else CountdownBeep:Play()end end end

local function updateTimer()
	local minutes = math.floor(timer.Value/60)
	local seconds = math.floor(timer.Value%60)
	
	if seconds >= 10 then
		textLabel.Text = tostring(minutes)..":"..tostring(seconds)
	else
		textLabel.Text = tostring(minutes)..":0"..tostring(seconds)
	end
	
	local raceStatus = RaceManager:GetRaceStatus()
	if (raceStatus == RaceManager.Status.Countdown and TopBar.Enabled) then
		if seconds == 0 then
			CountdownEndBeep:Play()
		else
			CountdownBeep:Play()
		end
	end
end -- updateTimer()