Unity Always Moving Right

I need help with making a script that makes my sprite automatically move right from whenever they start playing, like “Geometry Dash”. I’ve tried making a script for it, but it is really jittery. Whenever the character would jump, he would float over the ground for a few seconds before landing. Here is the script:

#pragma strict

function Start () {


function Update () {
    transform.Translate(Vector2.right * 0.1);

That won’t work because it’s framerate-dependent (will run at different speeds when the framerate varies). You need to use Time.deltaTime.