Simple snippet to move your object to the direction of the current rotation.
transform.position += transform.forward * Time.deltaTime * movementSpeed;
Set a float called movementSpeed to set the speed of movement.
We provide special containers which include the full snippet and a link to this site. So for example when you make a tutorial and you are using code from this site, you can use one of the following snippet embeddings: