Pen going up and down all the time even if I'm not telling it to

pen going up and down? why?

Share a project...

https://snap.berkeley.edu/project?user=snapattack2021&project=turtle

It's because of this script: turtle script pic
The when answer = pen block will keep
activating while the answer is 'pen', not just when it is first received.

Try this instead...
turtle script pic
Then, replace these hat blocks:
turtle script pic (1)
with these hat blocks:
turtle script pic (2)