Problem with pausing when the game is paused

It’s very hard to read the code without code tag s. It’ll be much easier to help if can edit those in.