Move an object up and down on a elevator platform

Hi, im make a simple elevator with a spline, and i have a mechanic to push blocks, I want to push my block on the elevator and when I activate It to move the block Up/Down, thats the code i got right now to attach the block but when the block overlaps the transform change and gets bug dont know If someone can help me.