When a company buys out another, all employees will automatically transfer to the new company on the same terms and conditions of employment.
There are complex issues surrounding TUPE transfers. Advice should be sought at the earliest opportunity before any transfer takes place.