How to check a IntValue to use it

I have a Value called CPS, I have an Upgrade that makes the CPS *10 for 15 secs. But when the Player leaves the Game the CPS keeps on the *10 multiplication. So I decided that I change an IntValue to 1 when it’s active and to 0 if it’s Inactive (Photo 1). I decided to check if it’s 0 or 1 when the player leaves. (Photo 2 and 3) but somehow it’s not working. Yes, I know I’m maybe a little Scripter noob ._.

Photo 1image

Photo 2

Photo 3 image

*You forgot to change the CPSCheck value back to 0 in your first photo

Also this is probably on the server side, which is why it’s still happening (Try doing it on a LocalScript instead)

Tried it wasn’t the Solution :grimacing:

At CPS.Value = CPS.Value * 10. Did you add local command at script? Like local CPS = game.Workspace.

It’d help to see the full script of photo 1 And formatted with code blocks a