-in seconds
time = 600
while time > 0 do
script.Parent.Text = time
wait(1)
end
script.Parent.Text = "Owch"
script.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 100
-minutes included
minutes = 10
seconds = 0
while minutes > 0 and seconds > 0 do
if seconds < 10 then
script.Parent.Text = minutes .. ":0" .. seconds
else script.Parent.Text = minutes .. ":" .. seconds
end
if seconds <= 0 then
seconds = 59
minutes = minutes - 1
else seconds = seconds - 1
end
wait(1)
end
script.Parent.Text = "Owch"
script.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 100
|