Variable going between 0 and the value it should be every frame

For some reason, my score variable is set to 1 on one frame, then 0 on the next, and then back to 1. Below are screenshots of code and the issue.

Here’s a screenshot of the the variable being printed every tick
Screenshot 2025-08-17 183434

Are you setting P1 Score anywhere else?

I don’t see how it could be getting back to 0 if the only time it is being set is as itself + 1

I call it to update the UI but I never set it anywhere else. That’s why I’m so confused because it seems like it shouldn’t be doing that but it does