Hidden behind the scenes, the fallen Emperor has secretly created a Sith robot just before his death, but his effort was for naught as he has given up his crusade to eliminate the last Jedi.
Like Rey, he followed the Jedi's footsteps in hopes of rebuilding their order.