Please help me, Im not sure what is causing this code to be a "runtime error"

This app is about clicking invasive bugs off of the screen, it is a "mock" app for the final AP exam. I also need a list, loop, and I already have the parameter. If anyone can help me at least figure out what is causing the runtime error, and possibly help me finish my code, I would appreciate it immensely.

When exactly does that error happen?
Also a screenshot of the error message might help

Taifun

It happens when I click the reset button. Thank you for helping

You are setting the score to boolean true or false... this is probably not what you want. .

Taifun

Okay thank you. What do you think I should change it to?

Do you want global Score to = 0, if so set it to 0, otherwise use an if block if you need to check if global Score = 0...

I want when any bugs are clicked, the score goes up by 1. When all 4 invasive bugs are clicked, and no native bugs clicked, I want the score to be 4, and the game to restart. If the score hits anything higher than 4, the score resets, and the game resets. Since the user clicked a native bug. Does this make sense?

This is my new code:

I am still getting a run error message.

unknown

what happens now inside the Reset procedure?
Debug your blocks...
Remember, you also can temporarily disable a block, for example the Reset procedure... do you still get a runtime error? If yes, the issue is inside the Reset procedure...

Taifun