I have t
I have to update a project made by another workmate, he is not available, he have this character hair bouncing a bit when it moves the head and the hair have this expression and show me this error

and this is the expression
freq = 3;
decay = 5;
n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time) n--;
}
if (n > 0){
t = time - key(n).time;
amp = velocityAtTime(key(n).time - .001);
w = freq*Math.PI*2;
value + amp*(Math.sin(t*w)/Math.exp(decay*t)/w);
}else
value
freq = 0.2;
amp = 80;
s= amp*Math.sin(freq*time*2*Math.PI);
[s,s];
