value, the second element of the zero-indexed array named 'value') and plugging each into the x and y respectively. It should read ], which makes perfect sense, since that is taking temp (whatever that is) and the original y value (i.e. I'm not sure how you ended up with, value], since 'temp', which is again presumably one-demensional shouldn't be addressed with an index. You are trying to plug both the x and y into a hole that is only designed for the y.
doesn't work because 'value' (for the scale property) is a two-dimensional array (I'm assuming this is on a 2D layer in this example). The reason works is because (presumably) temp is single numerical value.