How i stop function?

how do I stop one function inside another, or outside?

I’m simply trying if I have more than 1 player, start the round, and if it leaves and only has 1 player, stop the function

funciona round()
for i = 5,0,-1 do
   game.ReplicatedStorage.Status.Value = i
end
 wait(3)
 for i = 30,0,-1 do
   game.ReplicatedStorage.Status.Value = "Time: "..i
 end
 end
 
 while wait() do 
 If game.Players:GetChildren() >= 2 then
 round()
 end
end

Use break when you want to stop the script.

if game.Players:GetChildren() == 1 then
     break
end

Place that in your for loop.