I've been working on a plugin I created and noticed something odd. The following is a representation of piece of my code: Code: var array = $gameVariables.value(x); var array2 = $gameVariables.value(y); // x and y were given the same values //EDIT: I meant x and y represent different numbers, but these game variables contain the same value. var id = array.pop(); console.log("Array: "+$gameVariables.value(x)); console.log("Array: "+$gameVariables.value(y)); The arrays for BOTH game variables (x and y) are decreasing as I pop out values from "array". Firstly, I thought only the new variable "array" would be affected, but $gameVariables.value(x) is also being affected. Secondly, I don't understand why a different variable is also being affected. I tested giving $gameVariables.value(y) a different array value and it was unaffected though. Does anyone recognise this issue?