Script deviceorientation to move an entity (only in Y axis)

How to move a entity horizontally only? Only. Right - left. Left- right. No move in. X. Z. Axis. Thanks.

Use translate or translateLocal to move an entity. When you call those functions, you choose which axes the entity moves in.