Answer
The answer is Ernest Scared Stupid, a 1991 American comedy-horror film directed by John Cherry. The film stars Jim Varney as Ernest P. Worrell, a lovable but dim-witted janitor who accidentally releases an evil troll on Halloween night. Ernest must then team up with a group of children to stop the troll and save the town.