This is an easy one. A criminal record is intricate, but depending on whether it is a misdemeanour or a felony, you may be restricted in either leaving the country or entering the UK. There is also a time limit on how long the criminal charge remains on your record for travel. Check with the
UK embassy closest to you for clarification.