If you want to visit your family in the UK and stay for less than six months, you will need a Standard Visitor Visa.
The earliest you can apply is 3 months before you travel and you will usually get a decision wishing 3 weeks of making the application.
This type of visa doesn’t allow you to study or work whilst in the UK.