Changing Components from current bike to new build

Not been on my bike for two years, Rock Lobster Tig Team SL and thinking of changing to a more long travel hardtail, is it possible to just take off my groupset and change it to new frame and fork, it's got xt groupset, I'm censored with mechanics myself but presume a shop that I buy the frame and fork fro could change over, or would I need different groupset and components for a long travel hardtail?
0
Posts
B'Twin Triban 5
VOODOO CANZO
Come and see me at https://www.facebook.com/biketyke/