Answer
The answer is "Dr. Otto and the Riddle of the Gloom Beam," a science fiction comedy film released in 1985. In this film, Jim Varney, known for his iconic character Ernest P. Worrell, portrayed multiple roles, including the eccentric scientist Dr. Otto and the dim-witted handyman Ernest. Varney's versatility in embodying these contrasting characters added to the film's humor and showcased his range as an actor.