Moving wall / cube pushes player in steps and not smoothly, how to fix? [SOLVED]

i tried this yesterday and i got it to push the player without any wall, it took a long time to set it up. the wall method would be way easier.