Input is either 0 or 1

for some reason my input is either 0 or 1, when i want it to move smoothly

Assuming you’re using a keyboard, values should be 0 or 1. A key can have 2 states only — pressed (= 1) or not pressed (= 0)

For smooth movement, use a lerp.