"Percy's Ghostly Trick" is an episode of the British animated TV series Thomas and Friends, based on the Railway Series books by Rev. W. Awdry, which makes suitable viewing for Halloween. The episode first aired in the United States on December 16, 1986.
Percy tells the others of a ghost train said to be warning others of danger on Thomas' Branch Line, but Thomas is dismissive. When Percy later crashes into a load of lime stuck on a crossing he becomes as white as a sheet and has the idea to pretend to be a ghost to pay back Thomas. With some help from Toby, Percy scares Thomas into leaving the shed. Thomas tries to cover up his mistake the next morning, but still runs when he hears Percy's whistle.