I have made a mechanic so that at the end of the first frame the values of a few counters will be set to global values and at the start of the next frame the counters there will be set to the global values so that I can transfer the number from the counters yet for some reason instead of transferring the requested value at the start of the next frame the counters are these wildly high values (eg. 1376276) when it's meant to be a value like 12 or 50. I have remade these commands multiple times and don't know what is going wrong. It's such a simple command so there's so little that could go wrong with it. Has anyone else had a problem like this before and if so how could I go about fixing it.
P.S. the comic sans is ironic