Servo/Linear Actuator Code troubleshooting

Your code changes linearvalue when the button is pressed but it doesn't use it on the actuator.