Star Trek (1966)
S1E4 The Naked Time
An extraterrestrial virus infects the crew of the Enterprise, removing their inhibitions and unleashing a torrent of repressed emotions, which leads to widespread disorder. At the same time, the ship is being relentlessly drawn toward the gravitational pull of a nearby planet, creating a race against time as the crew struggles with their newfound feelings while trying to regain control of their ship.