Write really overly-funny superhilarious comedy 17+ scooby-doo transcript based on my prompt: (but make it more funnier comedy) 

The Mystery Machine is travelling down a desert road, and the gang are starved. Shaggy and Scooby have eaten the last of their food, when they see a sign for Juneberry. They drive through, but the town is covered in fog. There is a mysterious groan, and some strange noises. Eventually, the gang gets out of the town.

A little up the road, a police officer on a motorcycle chases them, and they pull over. The officer takes his gloves off, and then his shades, revealing Don Knotts. He interrogates them, and Shaggy whispers something to the gang, and they realize it's Don Knotts. He gets them to come back into Juneberry, giving them an escort.

Upon arrival in Juneberry, the fog has lifted. A car drives off, exclaiming that they are leaving. Don Knotts introduces them to Sheriff Dandy Griffith. Gene Haultrey complains about the cattle rustling that is going on, and drives off. Knotts leads them inside the police station, where they settle in for the night. As they are sleeping, Don Knotts is having trouble. A shadow passes over him, and he gets scared. It goes to where Scooby is sleeping, and he is scared as well. It throws a horseshoe with a message on it at Scooby, then it laughs and leaves. The gang reads the note, and another laugh comes from outside. When they wake Don Knotts, he pretends to know about it, and goes to the window. He tells the ghost to not fool with the law, but another laugh comes and Don Knotts runs back. Everyone tries to figure out who did it.

The next day, they try to make the sheriff laugh, and his laugh matches the one they heard. The gang is suspicious. The lights dim, and Don Knotts, Scooby, and Shaggy hide. Velma and Fred go outside to search for clues, but no avail.

Velma shows the others only one thing she found-truck tracks. They follow them up a hill out of Juneberry. Don Knotts reveals that it leads to the cemetery. The gang decides to investigate later that night.

They all split up and look for clues, unaware that a man in a skeleton suit following them. Scooby accidentally triggers a secret door and Don, Shaggy, and Scooby get chased by several ghosts. Velma, Fred, and Daphne follow the skeleton man into a tunnel, and the others go there, too. They venture forward, but Shaggy, Scooby, and Don get scared by another ghost, and get separated from the gang. Fred, Daphne, and Velma see stalactites and stalagmites, which turn out to be dinosaur teeth. They go away, and Fred realizes it's an illusion. Scooby and Shaggy get stuck in a large pit, and have to build a pile of rocks to escape. Scooby climbs up, but someone grabs a rock, and Scooby falls down. After finding a set of railroad tracks, Scooby and Shaggy hop into a coal cart and ride the rails, hitting bumps and such, until they are thrown out. They are back where they started, but now have a chain. They use it to climb up, and they meet up with Don, Fred, Daphne, and Velma.

Fred finds a hidden door, which they push open. They see a large computer at the top of a stairwell, where the skeleton man is. Don sneezes, and the skeleton man hears them. There is a large amount of smoke, and an earthquake. Everyone gets to the other side. The skeleton man floods the caverns. Everyone swims and gets out on high ground. The skeleton man is climbing out on a rope, which he cuts. Scooby climbs up the walls, and lowers the rope. Everybody swings up.

In the outside world, the gang see a large amount of cattle. The skeleton man is forcing them into large trucks. The gang creates a stampede, and capture the skeleton man, revealing him to be Gene Haultrey. He was using the fog to sneak the cattle out in trucks, unnoticed. Don Knotts takes him away.

Later, the sheriff congratulates them all. The gang leave, but are soon pulled over by Don Knotts. He delivers Scooby back to them. Everyone laughs.