Make a object ''rise'' Move up

Im making a game where i need lava to rise, and then you need to climb to escape.
Ive been trying to find scripts and tutorials to make an object move up, but i havent been able to find anything.
Do anyone know a script to make an object move up? And make it a variable so i can change the speed?
Thx :-D!

Just create the following script (example in javascript) and attach it to your lava object. You can modify the speed either from the Inspector in the Editor or from code.

#pragma strict

public var speed : float = .1f;

function Start () {


function Update () {

	transform.position.y += speed * Time.deltaTime;

public class MoveUp : MonoBehaviour
public float speed = 1f;

    void Update()
        transform.Translate(Vector3.up * speed * Time.deltaTime);