local function startTimer()
while true do
currentTime -= 1
label.Text = formatTime()
Addtime.Event:Connect(function()
currentTime += 2
end)
if currentTime <= 30 then
label.TextColor3 = Color3.new(1, 0, 0.0156863)
end
if currentTime <= 10 then
game:GetService("SoundService").Beep:Play()
end
if currentTime <= 0 then
char.Humanoid.Health = 0
game:GetService("SoundService").Beep:Stop()
label.Parent:Destroy()
label:Destroy()
break
end
task.wait(1)
end
end
startTimer()
2 Likes