Courtesy : sciencefocus.com
It’s a technique called chroma keying, where someone is filmed standing in front of a green screen. Any green colours are digitally filtered out and replaced by the desired video. If the subject wears anything green, the background image fills that in too, giving the impression the person has holes in them. Green is used as it is the least like skin tone.