How to make an object to move from left to right without hitting a key

Hi i would like to make a character move like in this video

Hi @unity_E-XM83v8bA2clw

FAQ recommends searching before asking.

Google for: “unity answers move object back and forth” - And you’ll come up with answers right here.

So if you check the links, you’ll know that:

You need basically back and forth movement that can be done like in the first hits you’ll get, using Lerp for example.

Then, if you need some wobble in axis perpendicular to movement, like the duck has in your GIF, then add some changing wavy offset value to z axis position of your moving object (or whatever the axis is in your case).