Three best friends, Sam, Lily, and Alex, discover an old treehouse deep in the woods. They soon realize that the treehouse is haunted by a ghost who needs their help to uncover the secrets of a mysterious book that had been left behind. Together, they embark on a thrilling adventure to solve the book's riddles and find the treasure of a group of pirates who once owned the treehouse.