freq = 5;
amp = 125;
decay = 3;
z = amp*Math.cos(freq*time*2*Math.PI)/Math.exp(decay*time);
value + [0,0,z]
theres a few ways to do it, none any more simple than the other, heres one…and this is assuming your doing a Math.sin or .cos*Math.exp(time) expression for the spring action.