Variable Glitch?

Whenever I make a new integer variable and then change it using a keyboard key to a different number, then print, it prints 0 4 0 4 0 4 0 4. (btw 4 is the number it’s supposed to change to) But for some reason it is printing 0 then 4 and then 0 and just keeps going. What is going on?

Are you printing this in multiplayer? It could have a different value on the server and client.

no

it seems it only happened when printing using the event tick to keep printing it. It seems to show 0 for some reason only when printing from event tick

in the 3 dots next to the play button it shows multiplayer options and lets me set numbers of players. But I don’t want this game to be multiplayer and didn’t set anything for it to be multiplayer, is this supposed to be there?

Set it to “Play standalone” if it’s single player.

oh okay thats what it was on