How to prevent shaking when standing on moving elevator

Well I made a script where elevator goes up and down based on animation and it works but when it starts the animation and I am standing on it ,when I look around or move ,it shakes ,I tryed to lower the speed a lot but it still shakes …

make the height vector3.y of the shaky thing same as elevator plus abit every fram while he is in elevator, with if condition if he jumps…

or try setting physics rigidbody detection to continuous