How do i make it so when you are touched you are on the other teamlike in garrys mod hide and seek

Is there somekind of coding that has to be done or something someone please help and if someone can make a video on it please do
Thank you in advance

I dont think you understand how complicated that is… Your question only creates more questions… I cant code something that will switch a players team when they touch another player… firstly because you havent stated if you have a team system to start with, so how do i put them on a team

If your a newbie i’d suggest trying to make a game thats a little less complicated than Hide and seek