I was more referring to yotsuya’s comment.
Also I think Palpatine’s spirit travelling a long distance works too.
EDIT: Wait a sec… where is the indication for any of your guys’ other explanations? Mine, at least, well… ugh… Palps simply transferred his consciousness into a clone, and my initial comment was there as a sort of rebuttal to the comment I referenced at the top of this one I typed everything in here.