Here’s a more detailed description for those that like to read up: https://rarehistoricalphotos.com/nasa-spiders-drugs-experiment/
Curiously enough when a similar experiment was first performed decades earlier the original intent was to get the spiders to weave their webs during different times of the day, rather than alter the pattern.
Here’s a short video talking about the results of this experiment, and how each spider reacted to the different drugs.