I invoke the ancient power that I may return! Poolcheck is the head at the Gravity Falls Pool, although he acts like a stereotypical military drill instructor.
Dipper and Mabel find this machine along with the memories of the townspeople and give Fiddleford back his memories, restoring his sanity.