How do I break the function if something is touched then spawns another function

local location = game.Workspace.lobbySpawn
local teleporter = game.Workspace.Win

game.Workspace.Win.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild(“HumanoidRootPart”) then
hit.Parent.HumanoidRootPart.CFrame = location.CFrame + Vector3.new(0,0,0)
end
end)

		if #remainingBlue == 0 then
			
			staus.Value = "Red team has won!"
			
			break
		elseif teleporter.Touched then 

		end

	end

	wait(6)
end

end

spawn(round)