It sounds like a narrative from some kind of Goosebumps book: the ghost train of the funfair inhabited by real dead people. That was, however, the precise case at Nu-Pike Amusement Park in Long Beach, California; and they'd have gotten away with it too, if it hadn't been for those meddling kids at Universal Studios.
In December 1976, a camera crew turned up to film an episode of the TV show 'Six Million Dollar Man'. While preparing the funhouse, a worker moved the "hanging man", and his arm fell off, revealing human bone. Turns out, the corpse was that of outlaw Elmer McCurdy, who robbed a train of $46 and two jugs of whiskey in 1911. Before Universal Studios discovered the body of McCurdy, the man had been hanging around that funhouse for four years; fairgoers simply thinking he was a prop.